This is a Python script that allows you to scrape images from Google search using keywords. It utilizes the BeautifulSoup library for web scraping and the requests library for making HTTP requests. Images are stored in mongoDB and in directory named as scrapped_images.
Installation Usage Contributing License
Before running the script, ensure you have the following prerequisites installed:
- Python 3.7: The script is written in Python, so you'll need to have Python 3.7 installed on your machine. You can download it from the official Python website: Python Downloads
- Clone the repository:
git clone https://github.com/ankitrajput77/image_scrapper.git
-
Navigate to the project directory:
-
Install the required dependencies:
pip install -r requirements.txt
- run app.py
python app.py
![Screenshot 2023-06-03 195058](https://private-user-images.githubusercontent.com/113281225/243103280-f7496958-5fe8-4e63-b003-b68a19a6696a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNTQ0MDksIm5iZiI6MTcyNTA1NDEwOSwicGF0aCI6Ii8xMTMyODEyMjUvMjQzMTAzMjgwLWY3NDk2OTU4LTVmZTgtNGU2My1iMDAzLWI2OGExOWE2Njk2YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMFQyMTQxNDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NWZhYmE4NGEwNWRjMzcxZmFiMDRjZmQ0MWY2NGJkZjg5MWE5OGIzY2U5MjM0YWRjMTdhNGE5MDI5ZThkOWI4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._TXBc-lYsTvsSh-6zNnRRTaQ9sOPURTSL3s7VJ7KBX0)
![Screenshot 2023-06-03 195114](https://private-user-images.githubusercontent.com/113281225/243103285-bb84b5da-d7ac-402d-839a-80600dcd27a5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNTQ0MDksIm5iZiI6MTcyNTA1NDEwOSwicGF0aCI6Ii8xMTMyODEyMjUvMjQzMTAzMjg1LWJiODRiNWRhLWQ3YWMtNDAyZC04MzlhLTgwNjAwZGNkMjdhNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMFQyMTQxNDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01MWE5M2JjYTU5ZmVkMWExMGE4NmFjZGIyMDA4YTY1MWViODYzNzk3YzIwMTRkMzczZTcyZTFjYmMwMGMwYjMyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.kn_jhBseprzYxKEaYP30EOsSyOjfgUJgN_X4sR66y3g)
Contributions are welcome! If you find any issues or want to add new features, please open an issue or submit a pull request. Make sure to follow the existing coding style and provide appropriate documentation.
This project is licensed under the MIT License.