This easy-to-use Python script can be used to search for and download images from google or other search engines.
pip install selenium
- Download and install WebDriver for Chrome (win32 works for both 32-bit and 64-bit windows OS)
pip install Pillow
DRIVER_PATH
- define the path to the downloaded ChromeDriverwd.get('search_engine')
- choose search enginescrape_images function
- define the folder path for the downloaded imagesgs = GoogleScraper(wd, 100)
- state the number of images to be downloadedgs.scrape_images('new folder name')
- name the new folder
Images shown in local storage
.
.
.