Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— Auto Market Tracker & AI Cleaner

An automated tool built with Python that scrapes automotive listings from Mercado Libre (Argentina) and leverages Anthropic's Claude to clean, structure, and standardize the raw data into a clean JSON format.


πŸ› οΈ Tech Stack

  • Python
  • Playwright (Web Scraping & Browser Automation)
  • Anthropic API (Claude 3.5 Sonnet) (Data Extraction & Natural Language Processing)
  • JSON (Data Modeling)

βš™οΈ How It Works

  1. Web Scraping (scraper.py):
    • Uses Playwright with custom browser headers, locales, and human-like delays (slow_mo) to securely navigate and extract raw listing cards from Mercado Libre Argentina.
  2. AI-Powered Data Processing (procesador.py):
    • Sends the raw text data to Claude.
    • Claude acts as an automotive market analyst, parsing unstructured strings into a strictly typed, uniform JSON array.
    • Automatically handles currency normalization (estimating conversions to USD when necessary), flags misleading pricing/down-payments (alerta_anticipo), and extracts clean model names, years, mileage, and links.

πŸ“‚ Project Structure

tracker-autos/
β”‚
β”œβ”€β”€ scraper.py       # Handles Playwright browser automation and raw data extraction
β”œβ”€β”€ procesador.py    # Integrates with Anthropic API to parse and structure data into JSON
β”œβ”€β”€ README.md        # Project documentation
└── claude-key.txt   # Paste your Claude API key here

About

An automated tool built with Python that scrapes automotive listings from Mercado Libre (Argentina) and leverages Anthropic's Claude to clean, structure, and standardize the raw data into a clean JSON format.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages