CLI tool for searching and scraping offers from OLX.pl, the Polish classifieds marketplace. Built with 🐍
Search with optional filters:
olx-cli search rower --category sport-hobby/rowery --location krakow --radius 10
olx-cli search fiat --photo-only --min-price 1000 --max-price 5000 --max-pages 2Any public user's offers visible via their user ID:
olx-cli search --user USER_IDolx-cli categoriesolx-cli suggest-category "rayman legends ps4"Create offers from a text file:
olx-cli add offer.txt
olx-cli add offers/ # batch from folderFile format:
title=Tytuł ogłoszenia
price=1299
category=sport-i-hobby/rowery
city=Kraków
contact_name=Jan Kowalski # optional
phone=123456789 # optional
negotiable=yes # optional
---
Multiline description here.
olx-cli me # your profile
olx-cli search --user me # your active offersSome features (add offers, view profile, my offers) require logging in.
- Create
credentials.txtin the project root:
username=your@email.com
password=your_password
- Login:
olx-cli loginIf automated login fails (WAF/DataDome blocking), it falls back to opening a browser for manual login. If both fail, wait a minute and try again.
Logout:
olx-cli logoutCreated with 🥒 Big Pickle in OpenCode