Skip to content

Car ads scraping. Project to find out latest cars in icarros and webmotors according with filters.

Notifications You must be signed in to change notification settings

1Wggb1/web-scraping-car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-Scraping-Car

It´s a basic python 'web-scraping' to get content from site simulating page request from server. The intent of project is find out new ad´s for car in sites, but is flexible to find out another items too.

Features

Today there are three implementations:

Code discovery

  • The file main.py contains examples of use;
  • The scraping result is store on folder results/[site] (icarros/webmotors) at root of project;
  • There are a file called results/[site]/found_results.json in each site folder (working like a database - storing results already found);
  • In future the impl can store data in nosql database;
  • The project has a github action to search ad on providers according a scheduled task;
  • It's possible to receives notification on email/telegram (currently in json format) - Here, mail/telegram bot configurations is necessary and git action too;
  • See actions configurations here.

Commands to configure and install required dependencies

This project uses python 3.11+;

Creating a python virtual environment

  • python3 -m venv venv

Activating venv

  • source venv/bin/activate

Installing required project deps

  • pip install -r requirements.txt

Running

After executing above steps execute the following command:

  • [email protected] EMAIL_ID=your_email_passwd CHAT_ID=telegram_chat_id BOT_TOKEN=telegram_bot_token python3 sample.py

After execution will see that folder results/webmotors will have new results.

IMPORTANT

  • To receive result in email and telegram will need to pass real values to variables (EMAIL, EMAIL_ID, CHAT_ID, BOT_TOKEN) of above command.
  • See sample.py to know about project use.

About

Car ads scraping. Project to find out latest cars in icarros and webmotors according with filters.

Resources

Stars

Watchers

Forks

Languages