Skip to content

This Project Scraps Images From A google Search, You can use this to create images

Notifications You must be signed in to change notification settings

fab-c14/ImageScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageScrapper

ImageScrapper Logo

Overview

ImageScrapper is a versatile Python-based web scraping tool designed for fetching and downloading images from various websites. Leveraging the power of Flask, Requests, Flask-CORS, Logging, and Beautiful Soup, ImageScrapper provides a robust and efficient solution for your image scraping needs.


Features

  • Web Scraping: ImageScrapper extracts images from different websites by providing the target URL.
  • Flask API: Built on the Flask framework, offering a RESTful API for seamless integration into your projects.
  • CORS Support: Flask-CORS is implemented to facilitate Cross-Origin Resource Sharing, enabling API access from different domains.
  • Logging: Comprehensive logging ensures transparency and aids in troubleshooting during the scraping process.
  • Beautiful Soup: HTML parsing is performed using Beautiful Soup, simplifying navigation and search within the HTML tree.

Installation

  1. Clone the repository:

    git clone https://github.com/fab-c14/ImageScraper.git
    cd ImageScraper
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the application:

    python app.py

    The server will be accessible at http://localhost:5000.


Usage

  1. Make a POST request:

    curl -X POST -H "Content-Type: application/json" -d '{"url": "https://example.com"}' http://localhost:5000/scrape
  2. Download Images:

    The scraped images will be available for download in the images directory.


Configuration

You can customize ImageScrapper's behavior by modifying the parameters in the app.py file.


Contributors


License

This project is licensed under the MIT License - see the LICENSE file for details.


Acknowledgments

Special thanks to the contributors and the open-source community.

Feel free to contribute, report issues, or suggest improvements! Happy coding! 🚀