A simple script that fetches images from Google with browser simulation.
The code requires Python 3. The following Python packages are required to run the script.
- selenium
- requests
- fake_useragent
- beautifulsoup4
- lxml
You can install them via pip install -r requirements.txt
. You also need install the ChromeDriver
for selenium to work. Please refer to here
on how to install it.
usage: download_images.py [-h] [--worker WORKER] keyword
positional arguments:
keyword the keyword to search
optional arguments:
-h, --help show this help message and exit
--worker WORKER the number of workers used for downloading images
This script is written for the purpose of practicing programming skills. Use it at your own discretion.