Skip to content

An intelligent vehicle scout tool that scrapes OLX listings, integrates with the FIPE API for real-time valuation, and identifies market opportunities using Python and CustomTkinter.

Notifications You must be signed in to change notification settings

plhnnathan/PyMotors-OLX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PyMotors - AI Auto Scout ๐Ÿš—

This project is a Python-based Data Mining & Analysis tool designed to scout vehicle listings from public marketplaces (OLX). It acts as an intelligent consultant, extracting raw data, enriching it with official market values (FIPE), and detecting opportunities or risks for the user.

โš™๏ธ Key Features

  • Extraction (Scraping):
    • Real-time extraction of vehicle listings using curl_cffi to handle TLS fingerprints and avoid anti-bot blocks.
    • Dynamic filtering by State (UF), City, Engine type, and Year range.
  • Transformation (Analysis):
    • FIPE Integration: Automatically identifies the vehicle version and fetches the official market price via API.
    • Smart Scoring: Classifies deals as "Excellent" (Green), "Fair", or "Expensive" based on FIPE comparison.
    • Risk Detection: Scans descriptions for keywords like "Leilรฃo" (Auction), "Sinistro" (Accident), or "RS".
    • Usage Metrics: Calculates average KM/Year to identify high-usage vehicles (e.g., ex-taxis).
  • Loading (Visualization):
    • Modern GUI: A clean, responsive desktop interface built with CustomTkinter (Light/Dark mode).
    • Excel Reports: Generates professional .csv files with conditional formatting and active hyperlinks.

๐Ÿ› ๏ธ Technologies & Skills

  • Language: Python 3.10+
  • Libraries: CustomTkinter (GUI), Pandas & XlsxWriter (Data), Curl_cffi & BeautifulSoup4 (Scraping).
  • Concepts: Object-Oriented Programming (OOP), Multi-threading, API Integration, ETL Pipelines.

๐Ÿ“ Project Structure

  • src/: Contains the core modules:
    • scraper.py: Logic for extracting data from the web.
    • analyser.py: Intelligence layer (FIPE comparison & tagging).
    • fipe.py: API client for official car pricing.
    • models.py: Data validation using Pydantic.
  • data/: Directory where the Excel reports are saved.
  • main.py: Application entry point (GUI).

โš™๏ธ Setup Instructions

  1. Clone the repository.
  2. Install the dependencies listed in requirements.txt.
  3. Ensure you have Python 3.x installed on your system.
  4. Run the project by executing the main.py file.

๐Ÿ“ง Contact

Nathan Chaia | LinkedIn

About

An intelligent vehicle scout tool that scrapes OLX listings, integrates with the FIPE API for real-time valuation, and identifies market opportunities using Python and CustomTkinter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages