Skip to content

A simple webscraper I made in a collab with @leoGrz1979. 😁🐍

Notifications You must be signed in to change notification settings

JaaJPlayz/cars_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

carScraper 🏎

Official repository

cars_scraper on Github

Stacks

  • Python 3.8+

Project description

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.

Project details

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.

Beautiful Soup

Found at: Beautiful Soup

Source can be found here

Documentation can be found here

Requirements

Python 3.8+

Beautiful Soup ^4.12.3

Getting started

  • 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

To-do

  • Try to download more than one image βœ…
  • Try to download the highest resolution image
  • Add a GUI

About

A simple webscraper I made in a collab with @leoGrz1979. 😁🐍

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages