cars_scraper on Github
- Python 3.8+
carScrapper is a tool designed to scrape car images for a Trump Cards Game. It uses the Google Images website to search for cars and download their images.
The app reads the car names from a JSON file called cars_data.json
and searches for them on Google Images.
It then uses BeautifulSoup to scrape the given URL and retrieve the img src from the first image found. After that, it downloads the image and saves it to the images
folder naming them with the car name and adding the .jpg
extension.
Python 3.8+
Beautiful Soup ^4.12.3
- Install dependencies
- Create your virtual environment with: python3 -m venv venv
- Activate your virtual environment with: source .venv/bin/activate
- Install the dependencies with: pip install -r dev-requirements.txt
- Build and run
python3 src/index.py
- Try to download more than one image β
- Try to download the highest resolution image
- Add a GUI