Google Reverse Image Search
An unofficial simple solution to search web pages using the specified image. Written on pure requests
Installation
> pip install google-image-source-search
Usage
from google_img_source_search import ReverseImageSearcher
if __name__ == '__main__':
image_url = 'https://i.pinimg.com/originals/c4/50/35/c450352ac6ea8645ead206721673e8fb.png'
rev_img_searcher = ReverseImageSearcher()
res = rev_img_searcher.search(image_url)
for search_item in res:
print(f'Title: {search_item.page_title}')
print(f'Site: {search_item.page_url}')
print(f'Img: {search_item.image_url}\n')
Searching by file
rev_img_searcher.search_by_file('test.png')
Switching safe mode
from google_img_source_search import SafeMode
rev_img_searcher.switch_safe_mode(SafeMode.DISABLED)
Passing custom session
import requests
session = requests.Session()
rev_img_searcher = ReverseImageSearcher(session)
Results
Output:
Title: WAIFU OR LAIFU? - YouTube
Site: https://www.youtube.com/watch?v=F8l5OgLpuyM
Img: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSKg0oMfWeMyBo0-KRerecMaRXNLI2zTLqmyXc0TgDS7nWJx3aB
Title: Печальный факт о Эмилии из аниме "Re:Zero. Жизнь с нуля в альтернативном мире" | AniGAM | Дзен
Site: https://dzen.ru/a/ZBs3vFvEYSvIxPhv
Img: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTA-RDMY-xUrV5Qqn5fYjJ9qFsZC2Posk16qHkWh4sdnVP5Leh7
Title: Stream chocho music | Listen to songs, albums, playlists for free on SoundCloud
Site: https://soundcloud.com/chocho-329200480
Img: https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQycLi6Ug9JtqKp5t6irb-3Pbj26DtTT48P-R38lOqVI5pXCwYz
Google lens:
Metadata
Release files for google-image-source-search 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| google_image_source_search-1.2.2.tar.gz | 9.1 kB | Without provenance | Details for google_image_source_search-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| google_image_source_search-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for google_image_source_search-1.2.2-py3-none-any.whl |
Total release size: 21.2 kB
Release files / google_image_source_search-1.2.2.tar.gz
| Download URL | google_image_source_search-1.2.2.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd1650e6ac86f21eb3ac59524fc00277a81bfa764b8c237d895f76246c17b604
|
|
BLAKE2b-256 checksum How to use checksums |
92ad4b645cd468b5b4e79ed8de8e8e46b7bd6d72793c6068f5245a25536edf65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Release files / google_image_source_search-1.2.2-py3-none-any.whl
| Download URL | google_image_source_search-1.2.2-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c224cfd2355b2fa3d1c5277222cc38a67033b4713fd3d3f839b0b6a6804207b5
|
|
BLAKE2b-256 checksum How to use checksums |
d011ac1c74b3e536e6f10dfa005b1b48b045e57af0c3eae3caf089059dd664c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.13
|
Security for google-image-source-search 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.