Crawl and download images using Selenium Using python3 and PyQt5
- Supported Search Engine: Google, Bing, Baidu
- Keywords input from keyboard, or input from line seperated keywords list file for batch process.
- Download image using customizable number of threads.
- Fully supported conditional search (eg. filetype:, site:).
- Switch for Google safe mode.
- Proxy configuration (socks, http).
- CMD and GUI ways of using are provided.
- Require Google Chrome Browser or Chromium Browser installed.
- chromedriver will be install automatically and added in the PATH
Download the corresponding version of chromedriver from here
Copy chromedriver
binary to ${project_directory}/bin/ or add it to PATH.
3.3 Download and setup phantomjs [deprecated]
Official phantomjs prebuilt executable can be downloaded from here
Copy phantomjs
to ${project_directory}/bin/ or add it to PATH.
pip3 install -r requirements.txt
Run image_downloader_gui.py
script to yank GUI:
python image_downloader_gui.py
usage: image_downloader.py [-h] [--engine {Google,Bing,Baidu}]
[--driver {chrome_headless,chrome,phantomjs}]
[--max-number MAX_NUMBER]
[--num-threads NUM_THREADS] [--timeout TIMEOUT]
[--output OUTPUT] [--safe-mode] [--face-only]
[--proxy_http PROXY_HTTP]
[--proxy_socks5 PROXY_SOCKS5]
keywords
## Example
python image_downloader.py -o /Users/linshan/Downloads/ -n 200 "Face Mask"
- MIT License
- 996ICU License