Your Scraper Still Says "Success." The Data Is Half Gone.
WebDoppler compares every check against the median of recent healthy runs, so a redesign that quietly thins your data is flagged as suspected drift instead of being stored as truth.
Most scraper failures are loud. A site blocks you, a request times out, an error comes back, and an alert fires. The failure that costs you real money is the quiet one: the site changes its layout, your extraction still "succeeds", and the page that used to give you 40 links and 8,000 characters of text now gives you 3 links and 900. Every run reports success. Nobody notices for months.
This post is about auditing your own data feed against its own history, and about how Gyrence's WebDoppler monitoring does it.
The problem: success that isn't
Imagine you track a competitor's pricing page, a regulator's notices, or a supplier catalogue. You have a pipeline that fetches the page, pulls out fields, and stores them. One day the site ships a redesign. Your fetch returns a normal page. Your extraction returns something. No error is raised, so nothing in your logs looks wrong.
But the data is now a fraction of what it was. Downstream, a dashboard shows prices that stopped updating, or an agent reasons over a half-empty record and does not know it.
Simple guards catch only the obvious cases: a block page, a very short response, a hard fetch error. They do not catch a page that is merely much thinner than it used to be.
How WebDoppler audits a run against its own past
Each time a WebDoppler monitor checks a page, it measures the shape of what came back, not just whether it came back. The code records:
- content_chars: the length of the cleaned text snapshot
- link_count: how many real links the page contains
- field_count and field_null_rate: when you have asked for structured extraction, how many requested fields actually came back with values
It then compares the current run to the median of recent healthy runs (a trailing window of ten). If a metric falls below the configured threshold, the run is not accepted as normal. By default that threshold is a 50% drop from the median, and it is configurable per monitor; setting it to zero turns drift checking off for that monitor.
Several design choices keep this from being noisy:
- It needs a real baseline. Drift cannot fire until a monitor has at least four healthy prior runs, so a brand-new monitor does not alarm on its own second check.
- Bad runs never become the baseline. Runs that were blocked, too thin, errored, too large, or already flagged as drift are excluded from the history. Otherwise one bad day would teach the monitor that bad is normal.
- Tiny numbers are ignored. A page going from 2 links to 1 is a "50% collapse" that means nothing, so metrics with very small medians are skipped. The floors are 400 characters, 5 links, and 3 fields.
- Only collapses count. A page that suddenly grows is news, and the ordinary change path already reports it. Drift is specifically about things getting suspiciously smaller.
What happens when drift is suspected
When the page changed and got structurally thinner, WebDoppler logs the run with the outcome drift_suspected instead of treating the new content as truth. Crucially, it preserves the prior baseline, so your last good snapshot is not overwritten by the degraded one. The flags are human-readable, for example "link count 3 vs median 41 (-92.7%)", so you can see at a glance what collapsed.
If you turn on drift alerts for the monitor, you are notified. If you do not, the run is still recorded with its outcome and the flags, so the audit trail exists either way.
Field-level drift is handled a little differently. Once extraction has run, a drop in how many fields came back is advisory: the content already passed the structural check, so the run is not rejected, but the flags are attached to the result for you to see.
Why this matters for agent builders
If an agent consumes scraped data, the agent cannot tell a thin page from a quiet week. It will cheerfully summarise whatever it is given. The audit has to happen upstream, in the pipeline that produces the data, and it has to compare against history rather than against a fixed rule, because "normal" differs for every page.
There is also a noise-reduction step worth knowing about. Before comparing content, WebDoppler normalises volatile details such as session identifiers, cache-busting version numbers, timestamps, and security tokens, so a page that only differs by a rotating token is not reported as changed.
A practical setup
- Register the page you depend on as a monitor, with extraction fields for the values you actually use.
- Leave the drift threshold at its default of 50% to begin with. Lower it if your page is stable and you want earlier warnings; raise it if the page is naturally variable.
- Enable drift alerts, so a
drift_suspectedoutcome reaches a person rather than sitting in a log. - Treat
drift_suspectedas a prompt to look at the page. Either the site was redesigned and your extraction needs updating, or the page is temporarily degraded and the preserved baseline did its job.
The takeaway
A pipeline that only checks "did the request succeed?" is auditing the wrong thing. The useful question is "does this look like the page I have been seeing?" Gyrence answers that with a small, explainable measurement against a healthy history, and it keeps your last good data intact while you find out why.
If your agents or dashboards rely on pages you do not control, this is the guard that turns months of silent decay into a flagged run on day one.
