A command-line interface tool for searching and downloading images from multiple search engines, including Google, Bing, and Yandex. The tool leverages the chromedp
library to interact with search engine results pages and download images efficiently.
- Supports multiple search targets: Google, Bing, Yandex.
- Download images concurrently from selected search engines.
- Scroll through search results to fetch more images.
- Save images in organized folders based on the search engine.
- Customize output directory and search parameters.
-
Ensure you have Go installed. If you haven't installed it yet, you can download it from the official Go website.
-
Clone the repository:
git clone https://github.com/selman92/image-searcher cd image-searcher
-
Install required dependencies:
go get github.com/chromedp/chromedp go get github.com/schollz/progressbar/v3
go run app.go [flags]
-query
,-q
: (Required) Search query for images.-targets
,-t
: (Optional) Comma-separated search targets: google, bing, yandex, or all (default: all).-out
,-o
: (Optional) Directory to save images (default: images).-log
,-l
: (Optional) File to save error logs (default: error.log).
- Basic search with default settings:
go run app.go -query "cats"
- Search images using specific search engines:
go run app.go -query "cats" -targets "google,bing"
- With all arguments
go run app.go -q "cats" -t "google,bing,yandex" -log "my_log.txt" -o "img/"