Flight price tracker

A personal agent that watches fares out of Kuala Lumpur and messages me when one is genuinely cheap.

Status
Paused. The bot and map still work on demand.
Stack
  • Python
  • SQLite
  • GitHub Actions
  • Cloudflare Worker
  • Telegram Bot API
  • D3
  • Claude

The problem

Cheap fares don’t last, and “cheap” means something different for every route. I wanted to be told about the good ones without checking every day.

What I built

An agent that scans return fares from Kuala Lumpur to anywhere, up to six months ahead, and sends a Telegram alert when a fare stands out. It runs on a schedule and can also be asked on demand.

How it decides what a deal is

A fare counts if it is at least 30% below that route’s own recent price history, or under a price cap for its region while the history is still being built. A drop of 55% or more is flagged as a possible error fare. The top deals are cross-checked against a second source before any alert goes out, and I’m not alerted about the same destination again unless it gets meaningfully cheaper.

Details I’m proud of

  • It knows Malaysian public holidays, so an alert can say how many leave days a trip needs.
  • “Watch this trip” re-prices a chosen trip daily and reports drops, rises and the countdown.
  • A world map of current fares that also opens inside Telegram.
  • An AI itinerary planner that runs in a locked-down sandbox: an empty folder, no file or shell tools, no access to other credentials.
  • When the hosted scheduler proved unreliable, I moved triggering to an edge worker so runs fire on time.

Stack

Python, SQLite, GitHub Actions, a Cloudflare Worker, the Telegram Bot API, D3 for the map, and Claude for the planning features. 41 automated tests.

Status

Paused. The bot and map still work on demand.