Skip to content

Python script for web-scraping images from google. Easily collect data for a computer vision project.

Notifications You must be signed in to change notification settings

tomisile/Web-Image-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Web-Image-Scraper

This easy-to-use Python script can be used to search for and download images from google or other search engines.

Prerequisites

  • pip install selenium
  • Download and install WebDriver for Chrome (win32 works for both 32-bit and 64-bit windows OS)
  • pip install Pillow

Edit and set the following variables in the script 🖊️

  • DRIVER_PATH - define the path to the downloaded ChromeDriver
  • wd.get('search_engine') - choose search engine
  • scrape_images function - define the folder path for the downloaded images
  • gs = GoogleScraper(wd, 100) - state the number of images to be downloaded
  • gs.scrape_images('new folder name') - name the new folder

Sample Screenshots

Annotation 2021-11-17 152232

Images shown in local storage

Annotation 2021-11-27 202641

.

.

.

©️ CTTO: Rubik's Code

About

Python script for web-scraping images from google. Easily collect data for a computer vision project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages