Skip to content

OSINT-mindset/lingolens

Repository files navigation

lingolens

Search in Google Lens in lingo!

Tired of irrelevant results of reverse image search? Yeah, search results can be VERY different because of your language environment!

Lingolens allows:

  • search images in Google Lens with specific languages and countries, excluding known results
  • generate one simple HTML report with all the results
  • provide you a possibility to compare the target image with the result images
  • a pretty user interface is supported!

The full list of supported languages and countries is here.

User interface

Report example

Check example of search results: report.html.

Installation

Requests and bs4 are required for the CLI version of the tool. Streamlit is required for User Interface.

pip3 install -r requirements.txt

Usage

As a browser-based tool

streamlit run web_search.py

By default, Streamlit create a local application http://localhost:8501/. You can try to deploy it on cloud infrastructure, but Google will very quickly ask script for captcha.

Then just choose the appropriate languages (mandatory) and countries (optional) and upload your image. To download the report click the button "Download report"

As CLI tool

./lingolens.py example.jpg

Searching for example.jpg...
Searching in RU language...
Found 60 results
Searching in EN language...
Found 60 results
Skipped 1 already known images
Searching in PL language...
Found 60 results
Skipped 1 already known images

You will get the report file in the same folder.

Before you should specify languages in the file langs.txt in the following format:

ru
en
pl

TODO

  • Customization of language list for a search (simple config file)
  • Language filter in a report
  • Standalone exe-file for Windows
  • Checkbox for switching to thumbnails instead of full images
  • Validation of lang-country combinations

Credits

Thanks to BLACK for inspiration and support!

Designed and developed for solving tasks on OSINT investigation forum.