Dev.to WebDev 🛠 Dev 👁 0 📖 4 min read

From Crawl to Card: How a Deal Travels from a Retailer Page to a Reader's Feed

From Crawl to Card: How a Deal Travels from a Retailer Page to a Reader's Feed A price is only useful if it reaches the reader while it is still true — so the pipeline between a retailer page and a published d

From Crawl to Card: How a Deal Travels from a Retailer Page to a Reader's Feed

A price is only useful if it reaches the reader while it is still true — so the pipeline between a retailer page and a published deal card has to be fast, honest about what it has not verified, and able to stop a bad price before it ships.

A deal site is a pipeline, not a page. Between the moment a retailer changes a price and the moment a reader sees that price on a card, the data passes through at least five stages: discovery, fetch, extraction, verification, and publication. Each stage can corrupt the result, and each stage has a different failure mode. Designing the pipeline means deciding what happens at each stage when things go wrong — because they will.

Discovery decides what gets watched. A crawler cannot watch the whole internet, so it works from a watchlist: products a guide tracks, plus new candidates surfaced by deal feeds, search trends, and reader requests. The watchlist is the most consequential list in the system. A product that is not on it is invisible no matter how good its price is, and a product that stays on it after it is discontinued wastes fetch budget. Prune the list on a schedule, and log every addition and removal — the watchlist is part of the editorial record, not an implementation detail.

Fetch is where politeness and speed collide. Retailers rate-limit, block datacentre IPs, and serve different prices by region, so a naive fetcher either gets blocked or gets a price no reader can reproduce. The practical answers are unglamorous: respect robots.txt, space requests out, rotate a small pool of residential egress points, and always fetch the same page the reader would see — same locale, same currency, no logged-in state that changes the price. If a fetch returns a captcha or a block page, record it as a failed fetch, not as a price of zero. A missing price is honest; a zero is a lie that looks like a deal.

Extraction is the fragile middle. Retailer pages change layout without warning, and a selector that worked yesterday can silently return the wrong number today — the strikethrough list price instead of the sale price, or a "from" price for a different configuration. Two defences matter more than clever selectors. First, extract several candidate prices and require them to agree with each other and with the previous observation before accepting a change: a price that jumps 40% in one observation is far more likely to be an extraction error than a real drop. Second, keep a screenshot or the raw HTML of every fetch that produces a published price. When a reader disputes a price, the stored page is the evidence; without it, the site is arguing from memory.

Verification is a gate, not a label. A price that has been extracted is not yet a price the site can publish. It needs to be matched against the retailer page — ideally by a second, independent fetch — and labelled by the strength of that match. Savlume's own model is two-tier: retailer-verified when the price was matched against the retailer product page, source-reported when it comes from a deal feed and has not been re-checked. The label is part of the data, carried all the way to the published card, not a footnote added at the end. A pipeline that cannot say "unverified" will eventually publish a wrong price as if it were certain.

Publication is a separate decision from detection. Finding a price drop and telling readers about it are two different acts, and they should be gated separately. A drop that fails verification should never reach a feed, a push notification, or a social post — it should sit in a review queue until a human or a second check confirms it. The queue is also where editorial judgement lives: a 5% drop on a product nobody asked about is not worth a notification, while a 30% drop on a watched product is. Rate-limiting notifications is not a courtesy; it is what keeps readers subscribed. A feed that cries wolf every hour gets muted, and then the real deal never reaches anyone.

Latency is a budget, not a race. The goal is not the fastest possible pipeline; it is a pipeline fast enough that the price is still true when the reader clicks. For most consumer goods, that means minutes, not seconds — fast enough to catch a flash sale, slow enough to run the verification gate. The honest metric to publish is not "we check prices every N minutes" but "the price on this card was last verified at this time." A timestamp is a promise the reader can test; a frequency claim is not.

The pipeline's real product is not speed. It is the reader's confidence that the price on the card is the price they will see at checkout. Every stage that can lie — discovery that misses the product, a fetch that returns a block page, an extractor that grabs the wrong number, a verification step that is skipped, a publication step with no gate — is a place where that confidence leaks. Build the pipeline so each stage can fail loudly, and so a failure anywhere stops the price instead of publishing it anyway.

Savlume tracks prices against retailer pages and labels each one retailer-verified or source-reported. This article describes the general design of a deal pipeline; it contains no product recommendations or prices.

Follow Savlume Deals on WhatsApp: https://whatsapp.com/channel/0029VbE9P7J7DAX7rD8TAC2U

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.