Download google images - Python
Dependencies:
- Selenium
Steps:
-
Download the chrome driver from https://sites.google.com/a/chromium.org/chromedriver/downloads. The correct version of chrome driver according to your google chrome version must be downloaded. More info on versions here: https://stackoverflow.com/questions/41133391/which-chromedriver-version-is-compatible-with-which-chrome-browser-version/49618567#49618567
-
Create a directory
chromedriver
. Put the downloaded chromedriver executable inside it. -
Modify
search_queries.yaml
file where you have to specify the folder name and the queries for your search. -
Run
python image_scrapper.py
to download all the required images. If you want to download only the thumbnails images from google search usepython image_scrapper.py --download_original_images=false