Popust bot
Every morning, the real discounts on clothes in the right size, without the fake ones.
import { Python, Claude Code (plugin), MCP, Playwright, SQLite, pytest } from "sokrat";
A bot that reads Croatian webshops every day, keeps the price history of men's clothing and sneakers in the right sizes, and drops discounts that are not real, when the same item was already as cheap in the last 30 days. Prices are calculated by code, not by the AI, and the result is one short page to read on the phone.
What it is
Popust bot looks for real discounts on men's clothing and sneakers in Croatian webshops, only in the sizes and brands that matter. Every day it reads the shops, remembers what each item cost before, and keeps only offers that are actually good. The result is one short page, made to be read on the phone over coffee: what is cheaper today, by how much against the usual price, and why the bot trusts it.
How it works
Ordinary code collects the prices, following a "recipe" for each shop: a small data file that says where the price, the sizes and the old price are on the page. Claude agents learn a recipe for a new shop and double-check the offers that look too good, but they never calculate anything. Prices, percentages and scores are worked out by code with exact decimals. A discount is dropped as fake when the item was already as cheap, or cheaper, at some point in the last 30 days. A price far below the usual one is marked as a possible error rather than a bargain.
The bot is polite by design: it respects robots.txt, waits at least three seconds between requests, and skips a shop that blocks it instead of trying to get around it. It never logs in, never pays and never solves a CAPTCHA. The dashboard above is an illustration with sample offers; the phone page is the bot's real output, filled with invented offers. Shops are not named.
