This script uses the GoogleImageCrawler
from the Python library icrawler
to automatically download images from Google Images based on specified keywords.
- Python 3.6 or higher
icrawler
package
pip install icrawler
- Run from the command line:
python scripts/crawler.py --input_word "puppy" --output_dir dogs --max_num 50
- After execution, up to 50 images of "puppy" will be saved in the specified
dogs/
folder.
dogs/
βββ 000001.jpg
βββ 000002.jpg
βββ ...
βββ 000050.jpg
- The script may not work properly if Google Images changes its specifications.
- Recommended for non-commercial use. Please be aware of copyright and usage policies.
This script is provided under the MIT License.