Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/horse-3903/google-reverse-image-search-deprecated
Package to obtain image information for things like data collection, or searching for higher resolution images
https://github.com/horse-3903/google-reverse-image-search-deprecated
google google-image-search python reverse-image-search
Last synced: 2 months ago
JSON representation
Package to obtain image information for things like data collection, or searching for higher resolution images
- Host: GitHub
- URL: https://github.com/horse-3903/google-reverse-image-search-deprecated
- Owner: horse-3903
- License: mit
- Created: 2023-01-05T15:50:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-22T23:54:51.000Z (5 months ago)
- Last Synced: 2024-01-23T02:12:52.181Z (5 months ago)
- Topics: google, google-image-search, python, reverse-image-search
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - horse-3903/google-reverse-image-search-deprecated - Package to obtain image information for things like data collection, or searching for higher resolution images (Python)
README
# Google Reverse Image Search
## Warning
This repository is DEPRECATED, and will not function properly due to Google Updates## Installation
Download the `src` folder or download from `pip` with the terminal command (below)Run the command in your local terminal with a Virtual Environment (https://docs.python.org/3/library/venv.html#creating-virtual-environments)
```sh
> python -m venv your_venv_name# Downloading from GitHub
> pip install -r ./path/to/requirements.txt# Downloading from pip
> pip install google-reverse-image-search> playwright install chromium
```
Note : Only works for Chrome _(for now but likely won't change)_## Usage
Import all functions from the file with
```py
from google_reverse_image_search import google_reverse_search
```Then start anywhere with the three basic functions
```py
print(google_reverse_search.search_with_query(query="your query"))
print(google_reverse_search.search_with_url(url="https://link/to/photo"),num=5)
print(google_reverse_search.search_with_file(file_path="C:/path/to/file",num=20))
```## Examples
All three functions will return the images in a similar manner### Code
```py
res:dict = google_reverse_search.search_with_query(query="boats",num=3)
print(res)
```### Results
>Formatted for easier reading
```ps1
Connected...
Navigating...
Getting results...
Formatting results...
{'title': 'boats',
'data': [
{'link': 'https://www.discoverboating.com/sites/default/files/small-boats_1.jpg', 'name': 'The Ultimate Guide to Small Boats | Discover Boating', 'dimensions': [1200, 795]},
{'link': 'https://d1nkxkz7ge96ao.cloudfront.net/eyJidWNrZXQiOiJzbW4tbWFpbi1zaXRlLWJ1Y2tldCIsImtleSI6ImltYWdlc1wvaW1hZ2luXC9McktPcmhFcE5FN0FNV3lFQUxRMUpFOE0wTjVsc1VkekxsNU9ZcEZsLmpwZyIsImVkaXRzIjp7InJlc2l6ZSI6eyJ3aWR0aCI6MjYwMCwiaGVpZ2h0IjoxMzAwLCJmaXQiOiJjb3ZlciJ9fX0=', 'name': "Family-Friendly Offshore Center Consoles & Bay Boats from 20' to 35' | Sportsman Boats", 'dimensions': [2600, 1300]},
{'link': 'https://cdn.britannica.com/27/166127-050-5E3F9372/salmon-fishing-boat-Alaska.jpg', 'name': 'Boat | Definition, History, Types, & Facts | Britannica', 'dimensions': [1600, 1075]}
]
}
```## Bugs and Issues
Please raise any issues you have on the [Issues](https://github.com/horse-3903/google-reverse-image-search/issues) forum, and I'll take a look and fix it 🙏