LUN Scraper Bot — Telegram bot · web scraper by Arsen GoianLUN Scraper Bot — Telegram bot · web scraper by Arsen Goian

LUN Scraper Bot — Telegram bot · web scraper

Arsen Goian

Arsen Goian

Cloudflare Worker that checks saved LUN.ua rental searches every 5 minutes and posts each new apartment to its own Telegram forum topic.
Role: Author
Client: Personal tool for apartment hunting
Team: Solo
Period: 2026

Challenge

Good rental flats in Kyiv are often taken quickly, so reacting early matters. LUN.ua aggregates listings from many sources but has no public API, and watching several narrow searches — specific microdistricts, satellite towns, price and area limits, flats or houses — meant refreshing pages all day. The goal was a bot that watches every saved search, spots genuinely new listings within minutes and sends them with photos and a map link to a shared group.

Solution

I wrote it as a Cloudflare Worker on a 5-minute cron. LUN pages are rendered by Next.js, so the scraper reassembles the React Server Component flight chunks and parses full listing cards — price, rooms, area, floor, address, metro, phones — paging until results run out. Searches live in JSON, with microdistricts and towns resolved to LUN geo ids. Seen ids are stored per search in Workers KV; the first run is a silent baseline. A dependency-free Node script exports the data to JSON and CSV.

Key features

Searches in JSON: microdistricts, towns, price, area, flats or houses
Parses Next.js flight data instead of fragile page HTML
Per-search deduplication in KV; silent baseline on the first run
Telegram forum topic per search, created and renamed automatically
Photo album with listing and map buttons; 429-aware pacing

Outcome

Running since August 2026 on a 5-minute schedule; 16 commits

Stack

JavaScript, Cloudflare Workers, Cron Triggers, Workers KV, Telegram Bot API, Node.js, Wrangler
Like this project

Posted Oct 22, 2026

Cloudflare Worker that checks saved LUN.ua rental searches every 5 minutes and posts each new apartment to its own Telegram forum topic.