Skip to content

MangoDeath/olx_hunter

Repository files navigation

OLX Hunter

A personal tool for tracking good deals on olx.kz with Telegram notifications.

Screenshots

Deal notification Price history chart
Deal notification Price history

Add your own screenshots to a docs/ folder with the filenames above (screenshot-notification.png, screenshot-history.png) and they will render here.

Installation

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

Configuration

  1. Copy .env.example to .env:

    copy .env.example .env
  2. Fill in .env:

    • TELEGRAM_TOKEN — get it from @BotFather (/newbot)
    • MY_CHAT_ID — your own chat id (send /start to @userinfobot)

Running

venv\Scripts\activate
python main.py

The olx_hunter.db database is created automatically on first run.

Note: the bot's Telegram interface (commands, notifications) is in Russian by design — this is a personal tool.

Bot commands

Command Description
/add iPhone https://olx.kz/... Add a search (city/radius filter is applied automatically)
/list List searches with inline delete buttons
/setprice 1 200000 500000 Price range for search id=1
/setdiscount 1 30 Alert when price is 30% below the rolling average
/pause 1 / /resume 1 Pause / resume a search
/stats Stats for today / week / month
/history 1 Price chart for the last 30 days
/help List of commands

Tests

python -m pytest tests/ -v

Autostart on Windows

Create a start_olx_hunter.bat file next to the project:

@echo off
cd /d "C:\Users\user\Desktop\olx_hunter"
call venv\Scripts\activate
python main.py >> olx_hunter_startup.log 2>&1

Option 1 — Startup folder (runs at Windows login):

  1. Press Win + R, type shell:startup, press Enter
  2. Copy start_olx_hunter.bat (or a shortcut to it) into the folder that opens

Option 2 — Task Scheduler (more robust, runs even without logging in):

  1. Open Task Scheduler (taskschd.msc)
  2. Click Create Task
  3. General tab: set the name to OLX Hunter, check Run whether user is logged on or not
  4. Triggers tab → NewAt startup
  5. Actions tab → NewStart a program:
    • Program: full path to start_olx_hunter.bat
  6. Click OK, enter your user password if prompted

About

Personal Telegram bot that tracks good deals on olx.kz (Kazakhstan): price-range and rolling-average discount detection, price-drop re-alerts, and history charts.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages