This repository contains a Python script for web scraping Google Images using Selenium WebDriver and Requests. The script automates the process of fetching and downloading images from Google search results.
Before using the script, make sure you have the following installed:
- Python 3
- Selenium WebDriver
- Requests library
- ChromeDriver (or the WebDriver for your preferred browser)
-
Clone this repository to your local machine:
git clone https://github.com/YGTRAY/webScraping.git
(check code comments for more understanding)
-
Ensure you have the WebDriver executable (e.g., ChromeDriver) installed and available in your system's PATH.
-
check for the best prompts according to your task then get its Link
-
modify the code according to your specific link
-
Run the script:
python googleImageScraping.py
-
The script will use Selenium to automate the browser, perform the Google search, and download images using Requests.
Feel free to customize the script according to your needs. You can modify the search parameters, browser choice, file download location, or implement additional features.
- If you are using Chrome version 115 or newer, please consult the Chrome for Testing availability dashboard.
- This page provides convenient JSON endpoints for specific ChromeDriver version downloading.
- Selenium WebDriver
- Requests library
Happy Web Scraping!