Skip to content

Python scraper for Otomoto.pl - Poland's largest automotive marketplace

Notifications You must be signed in to change notification settings

kami4ka/OtomotoScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Otomoto.pl Car Scraper

A Python scraper for collecting car listings from Otomoto.pl using ScrapingAnt API.

Features

  • Scrape car listings by make and/or model
  • Pagination support (32 listings per page)
  • Export to CSV or JSON
  • Automatic deduplication
  • Data fields: title, make, model, price, year, mileage, fuel type, transmission, engine size, power, location

Installation

pip install -r requirements.txt

Usage

# Scrape all car listings (1 page)
python main.py --api-key YOUR_SCRAPINGANT_KEY

# Scrape Volkswagen listings (1 page)
python main.py volkswagen --api-key YOUR_SCRAPINGANT_KEY

# Scrape Volkswagen Golf listings (3 pages)
python main.py volkswagen golf -p 3 --api-key YOUR_SCRAPINGANT_KEY

# Scrape all BMW listings (2 pages) in JSON format
python main.py bmw -p 2 -f json --api-key YOUR_SCRAPINGANT_KEY

# Using environment variable
export SCRAPINGANT_API_KEY=your_key
python main.py audi a3 -p 2

Output Fields

Field Description
title Full listing title
make Car manufacturer (Volkswagen, BMW, etc.)
model Car model (Golf, Passat, etc.)
price Price in PLN
year Year of manufacture
mileage Kilometers driven
fuel_type Benzyna, Diesel, Elektryczny, Hybryda, LPG, etc.
transmission Manualna or Automatyczna
body_type SUV, Sedan, Hatchback, Kombi, etc.
engine_size Engine displacement (e.g., 1997 cm3)
power Power output (e.g., 150 KM)
color Car color
location City and region
listing_id Unique listing identifier
detail_url Full URL to listing
image_url Main image URL
scraped_at Timestamp of scraping

About Otomoto.pl

Otomoto.pl is Poland's largest automotive marketplace with over 200,000 car listings from both private sellers and dealers across Poland. It offers detailed vehicle information including mileage, service history, and comprehensive vehicle specifications.

ScrapingAnt API

This scraper uses ScrapingAnt for web scraping with browser rendering.

Get your free API key at: https://app.scrapingant.com/signup

Note: The free plan has concurrency limited to 1 thread.

License

MIT

About

Python scraper for Otomoto.pl - Poland's largest automotive marketplace

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages