This project is an Image Scraper that extracts images from websites using BeautifulSoup, Requests, Chrome Driver, and OS. The scraper downloads images from a given URL and saves them locally for further use.
- Python 🐍
- BeautifulSoup 🌐 (for parsing HTML)
- Requests 📡 (for making HTTP requests)
- OS 📂 (for managing file storage)
- Scrapes images from a given website URL.
- Filters images based on file formats (JPG, PNG, etc.).
- Saves images in a specified local directory.
- Handles exceptions and prevents duplicate downloads.
git clone https://github.com/Magnus0969/Image-Scraper.git
cd Image-Scraper
pip install -r requirements.txt
To scrape images from a website:
python scrape_images.py "https://stock-pictures.netlify.app"
- Downloaded images are saved in the
imgs/
directory.
Fetching images from https://example.com
Saving images to /imgs/
Total images downloaded: 20
For any questions or collaborations, feel free to reach out on LinkedIn.
Made with ❤️ by Karthik B Magadi