Scrape Otomoto Car Listings with Python

Краткое содержание

Pixel shares a Python tutorial for extracting passenger-car listings from Otomoto using the Apify Scraper and API client. It demonstrates collecting fields such as price, make, model, year, mileage, fuel, gearbox, location, and seller, with practical uses for comparing cars and monitoring dealer stock.

DEV Community

How to Scrape Otomoto Car Listings in Python with Otomoto Scraper

By the end of this tutorial you will have a Python script that pulls car listings from otomoto.pl into structured rows: asking price, make, model, year, mileage, fuel, gearbox, engine power, town, voivodeship and seller. Otomoto is a Polish car marketplace. Otomoto Scraper (reventadata/otomoto-scraper) is the Apify Actor built for this site to extract its passenger-car listings. You send it a search, and it returns one row per listing. This guide runs it from Python with the Apify API client. The sample rows below are real Golf rows from the 15 November 2026 run of the Actor's public example task, not invented ones. Prerequisites You need three things: Python 3 with pip. A free Apify account, which you can create with an email address or a GitHub login. Your API token, from Settings > API & Integrations in Apify Console. Install the client and export the token: pip install -U "apify-client~=3.0"
export APIFY_API_TOKEN="your_apify_token_here"
No scraping code is needed on your side. The Actor does the fetching. What you'll achieve You will search otomoto.pl for the newest listings under the term golf, read ten rows in Python and print one line per car. Then you will count how many of those rows actually mention the term, to see that a search term here selects a make or model. The same script works for a dealer watching competitors' stock, a buyer comparing mileage and price for one model, or an analyst building a table of listings by voivodeship. Only the input changes, and the rest of the script stays as it is. Along the way you will see which fields can be empty, which matters as soon as you compare cars. Step 1: Open Otomoto Scraper Open the Otomoto Scraper page on Apify Store. The Try for free button there opens the Actor in Apify Console. This tutorial uses the API from Python, so you only need the Actor name, reventadata/otomoto-scraper. The Actor covers passenger cars only. Other Otomoto categories are not part of it. Step 2: Choose the search The search is described by these input fields: searchQueries: a list of search terms, one search per term, each matched to Otomoto's makes and models: golf, seria 3, bmw, volkswagen passat. A term that names no make or model is skipped; if none does, the run fails. Leave it empty and the Actor browses all passenger cars with the other filters. make and model: slugs as they appear in Otomoto URLs, for example bmw and seria-3. A model needs a make. Without a search term they narrow the search itself; with one, they keep only that make or model among the term's matches. minPrice and maxPrice: in PLN. minYear and maxYear: production year. fuelType: any or electric. Any other value is refused before any page is read. sellerType: any, private or professional (dealers). Any other value is refused before any page is read. sortBy: newest (the default), priceAsc, priceDesc or relevance. requireKeywordMatch: true drops rows whose title, make, model and version do not contain every word of the search term. Off by default, because a term already selects a make or model. maxItems and maxPages: caps on rows (default 1000) and on pages per search (default 50). A page holds 32 listings plus one pinned listing. Search terms are makes and models (golf, seria 3, bmw). A term that names neither, such as vw or gti, is skipped, and the run fails if no term matches. Private sellers are filtered by Otomoto itself. Dealers are filtered by the Actor after a page is read, so a dealers-only search walks the same result pages as an any-seller search and may need more of them to fill maxItems. To list a model from dealers only, with no search term, the input would look like this: {
"make": "bmw",
"model": "seria-3",
"minYear": 2018,
"maxPrice": 120000,
"sellerType": "professional",
"maxItems": 50,
"maxPages": 2
}
Step 3: Run it from Python This script starts the Actor, waits for it, reads the dataset and prints one line per listing, then counts the rows that mention the search t...
Scrape Otomoto Car Listings with Python
Powered by Readybot.io

Последнее от Pixel

Incident Response: Look Beyond the Red Alert

Pixel’s DEV Community announcement explores how teams can fixate on one failing service while overlooking the real cause of an outage, such as a full …

Sach: AI Fact-Checks WhatsApp Forwards in India

Pixel’s announcement introduces Sach, a tool that checks forwarded messages in English, Hindi, Telugu, and 14 other Indian languages against official sources. It gives cited …

Java 25 Removes SecurityManager: What to Fix

Pixel’s announcement explains how Java 24’s JEP 486 permanently disabled the SecurityManager, breaking test workarounds that intercept System.exit. It recommends returning exit codes or throwing …

Why a Java HPA Got Stuck at 20 Kubernetes Pods

Pixel shares how a Spring Boot pricing service autoscaled to 20 Kubernetes pods and stayed there because the JVM retained committed heap memory after traffic …