Search for similar images on Google using Selenium
Project description
gooise
gooise (pronounced as goo-ee-se) is a Google Image Search automation tool.
Usage
Installation
gooise is available at Python Package Index and thus can be installed by pip:
$ pip install gooise
pip will also install gooise script to PATH.
Basic usage
Searching for local/remote image
$ gooise -e image.jpg
$ gooise -e https://example.com/img/image.jpg
Note: by default, gooise uses any available web driver, so you need to have at least one of these supported browsers installed:
- Chrome (or any other chromium-based browsers)
- Firefox
- Opera
- Internet Explorer
- Edge
If your browser is installed in some uncommon location or is not in PATH, you'll need to pass some extra parameters to gooise (see Configuring web driver.)
Advanced usage
Configuring web driver
Use -d {chrome,firefox,opera,ie,edge}
option to specify type of browser, and -b PATH
to specify browser executable.
$ gooise -d firefox -b /usr/bin/firefox -e image.jpg
Running in headless mode
Note: gooise supports headless mode in Chrome/Firefox only.
Headless mode (enabled with -e
flag) hides automated browser window preserving its full functionality.
It's usually more preferable since browser in regular mode has to stay focused (Selenium might fail to interact with
a web page if browser window is kept in background).
Contributing
Google tends to update their frontend once in a while, and thus all HTML tag IDs/classes are updated, too.
If you noticed that gooise isn't working as expected anymore (or not working at all) - you can open an issue or propose a fix via merge request.
These files contain CSS selectors and web page interaction logic:
- Logic - flow.py
- Conditions - condition.py
- Web page elements location - locator.py
- URL image search - searcher.py
- Local image uploader - uploader.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gooise-2020.7.18.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68a11d3982b5ac23c7457e2ebd89c5eaca665fbce5adf8abaf7f29fe17269e9a |
|
MD5 | f7b828c184952256ac037f2b65c037e2 |
|
BLAKE2b-256 | 9ceef36f79405f135726887ac4ed8682440f6928ec645452acc7113d1f8292fe |