A Python-based web application to download images from Google search results. This tool leverages Google's custom image search API to retrieve images based on a search query and allows you to save them to your local machine.
- Search for images by keywords.
- Download images directly to your local machine.
- Specify the number of images to download.
- Simple and easy-to-use interface.
- Python 3.x
- Google Custom Search API key
- Google Custom Search Engine (CSE) ID
git clone https://github.com/shaurya-bhatia-sb/Google-Image-Downloader.git
cd Google-Image-Downloaderpip install -r requirements.txt
- Go to the Google Cloud Console.
- Create a new project (if you don't have one).
- Enable the Custom Search API.
- Generate an API key and save it for use.
- Go to Google Custom Search Engine.
- Create a new search engine.
- Retrieve the Search Engine ID (CSE ID).
- Create a .env file in the project directory.
- Add the following configuration:
API_KEY = 'YOUR_GOOGLE_API_KEY'
CSE_ID = 'YOUR_CSE_ID'
SENDER_EMAIL = 'your_email@example.com'
SENDER_PASSWORD = 'your_email_password'
- Launch the app and enter the desired search tag (e.g., "car").
- Specify the number of images to download.
- The app will download the images to the location you specified.
- app.py: Contains logic for interacting with the Google API, downloading images, and saving them to the designated folder.
- Email functionality for notifications after images are downloaded.
- The app allows the user to define the search tag and the number of images to be retrieved.
Feel free to fork the repository and submit pull requests. If you encounter any bugs or have suggestions for improvements, please open an issue.
Made with ❤️ by Shaurya Bhatia


