This is the sequel to the weekend prototype. That build answered whether we could derive address data ourselves. This one asked a harder question: can it run in production for months, across six countries, without me babysitting it? It ran for about 25 weeks. Then we switched it off, on purpose, with every row exported and a tested way back.
The problem
The sales team at a Dutch home-services platform needed a continuous supply of qualified partner prospects: home-service companies across NL, BE, FR, ES, IT and DE. Not a one-off list, a supply. Lists go stale, and a weekend scraper that works on Monday is broken by Thursday when a source redesigns its markup.
So the interesting engineering problem was never extraction. It was staying alive without me. The ending, further down, shows where that held and where it stopped.
What got built
A production platform that crawled business directories, trade-association registers and competitor platforms (304 configured sources in August, 438 at the end), then normalized, scored, deduplicated and LLM-enriched the results into CRM-ready prospects for HubSpot and the company's own website, brand.com.
Pipeline: Python 3.12 + Celery across crawl / etl / enrich / analytics queues → spiders (Playwright with Camoufox anti-detect, curl_cffi TLS-fingerprint impersonation, residential proxies with geo-targeting) → raw JSONL to object storage → decoupled ETL → Supabase Postgres. A FastAPI control API sat in front, with a mobile-first React control UI on Vercel.
Infrastructure: a pure control-plane coordinator node plus autoscaled worker pools booted from pre-baked snapshots, scaled by queue depth, brokered over managed Valkey/TLS. Deploys promoted a version bump rather than recycling the fleet.
LLM use, cost-engineered: OpenRouter for selector recovery and enrichment of company websites into firmographics. The model was picked by a 7-model bake-off, not on benchmarks. A self-hosted Firecrawl instance then replaced per-call LLM enrichment for address backfill, at about 620 addresses an hour. In November an LLM-free enrichment mode extracted site facts deterministically, behind a switch.
Sales features on the same data: from 8 August, a competitor overview showed sales which companies were already listed on rival lead platforms, filterable by branch and country, exportable as CSV, with existing customers and blocked companies excluded automatically. A company on a competitor's list is already buying leads, which makes it a warmer prospect than a cold directory find. One competitor alone listed 1,036 companies. October added focus-market scoring for sales.
Open data instead of crawling: in November the open Overture Maps places dataset (about 10.6 million service businesses in 31 European countries) went into its own table, with fill-only merges into the prospect table, so businesses the company doesn't sell to never polluted prospect counts.
The self-healing loop
This is the part worth stealing.
When a spider broke on a site redesign, the crawler didn't just alert. It filed a repair ticket, which push-triggered a scheduled Claude Code agent. The agent fixed the selectors against the live site, verified with the test suite plus a real re-crawl, and opened a PR. A human reviewed a diff instead of debugging a scraper.
A second watchdog layer sat above that, rebooting a wedged control plane through the cloud provider's API. Two layers, because the first one can't fix itself.
That design had a limit, and production found it. At one point the scheduler sat dead for 32 days while the health endpoint said ok, and the self-heal routine's GitHub token expired, so the repair loop quietly stopped repairing. Neither layer watched for missing output or for its own access running out.
Making the loop safe took 17 project skills encoding the ops runbooks (spider-repair, worker-pools, database-health, coordinator-deploy and more), so an autonomous routine had a procedure to follow rather than improvising against production. CLAUDE.md became institutional memory: every production outage distilled into a rule, and every rule backed by a guard test so it can't silently drift back.
AI at content scale
One two-day burst ran about 1,175 headless Claude Code sessions to bulk-rewrite original Dutch company introduction texts, replacing competitor-sourced descriptions ahead of the CRM upload. That got codified afterwards into a reusable skill with checkpoint/resume, 429 backoff and cost controls, so the next bulk job is a command, not a project.
How it ended
On 3 November the decision was to decommission the platform. The shutdown waited one week for the Belgian company data that the rollout of brand.com in Belgium needed. On 10 November 2026, after about 25 weeks, it was switched off.
Why it stopped, plainly:
- The sources were closing. Anti-bot measures (Cloudflare, Incapsula, CAPTCHA) had paused most sources after the residential proxy was dropped, and the self-heal loop had lost its GitHub token and stopped repairing.
- The need moved. The direction shifted to the B2B platform and to bulk open data (Overture, the Belgian business register), which do not need a crawler fleet.
The shutdown ran as a procedure, by agents, with my approval on every destructive step:
- Freeze: pause all 438 sources, stop the scheduler, drain the queues.
- Export: full database dump, CSV export, object storage, logos and photos.
- Verify: restore the dump into a fresh database and compare every table count with live. The test restore matched every count, and it caught a missing database extension that would have broken a later restore.
- Destroy, item by item: workers, coordinator (snapshot kept), Valkey, container registry, storage bucket, firewalls, keys.
The data archive is kept for 12 months. The code, images, a coordinator snapshot and a written restore guide stay, so a restart is a rebuild from known parts. Freezing and shutting down the fleet took one day and lost nothing; revoking the last keys followed the next day.
Outcomes
| Companies at shutdown (10 November) | 2,677,329, about 1.2 million of them from the Overture load in the final week |
| Companies captured by August | 217k+: NL 102.7k, ES 31.6k, BE 30k, FR 28.2k, IT 24.9k, plus DE |
| Sources configured | 304 in August, 438 at shutdown |
| Flagship CRM deliverable | about 153,641-row NL company upload, with a 500-row adversarially web-verified sample, a marketing report and a source-provenance report for management |
| Self-heal loop | verified end-to-end in production; stopped repairing once its access token expired |
| Exit | full export, test restore matched every table count, archive kept 12 months, restore path documented |
| Commits | 1,013 in about 25 weeks (808 in the first 10), largely agent-written under short plain-language direction |
What broke, and what it taught
Health is not presence. A worker counted "healthy" by its cloud tag ran disconnected for about 24 hours, and later the scheduler sat dead for 32 days while /health said ok. Alert on the absence of output (no new rows in N hours), not on process liveness.
Credentials rot silently. Cloud tokens, registry tokens and the self-heal routine's GitHub token expired, and each failure looked like something else. A self-healing system that can't renew its own access is not self-healing. Next time: one expiry list with dates, checked by a routine.
Know your broker's defaults. Celery's 1-hour visibility timeout silently redelivered long crawls over and over, burning roughly half of all crawl capacity on work that was already done. Fixed, then pinned with a lockstep guard test so the value can't drift back.
Silent data loss is more dangerous than loud errors. A stale category config dropped 14.2k ready providers from an export with no error at all. Separately, a dispatcher that selected rows on the same column it filled re-scraped identical unfillable rows forever. Both became enum-parametrized guard tests and attempt markers: the class of bug, not just the instance.
Fix the query, not the compute. Database CPU pinning at 100% traced to per-record ILIKE scans. Bulk prefetch solved what a bigger instance would only have hidden. Later, bulk imports and photo storage pushed the database to its disk limits: stage bulk results in files or a staging table, merge once, and keep binaries out of the database.
WAFs fingerprint TLS, not user agents. curl_cffi impersonation cleared Imperva, DataDome and Cloudflare without a browser, with a deliberate escalation ladder so expensive residential proxies were the last resort. Once the proxies went, most sources went with them.
Multi-agent work needs one owner per live system. Concurrent AI sessions sharing worktrees once swept staged work into the wrong commit. Rule: one session owns the live system, and any session that starts infrastructure records it first.
Durable ops config belongs in a database row, not a hand-edited .env that the next deploy quietly reverts.
Shut down in the right order. Freeze, export, verify with a real restore, then destroy per item with approval. That order is why freezing and shutting down the fleet took one day and lost nothing.
How it was run
Human-as-director, agents-as-engineers. I steered with short prompts ("why are we stale on 25h last-scraped", "I'm on holiday next week and can't monitor you") while Claude Code did the engineering.
The leverage was never in prompting better. It came from writing the operating knowledge down: skills as runbooks, CLAUDE.md as outage memory, a guard test for every incident. The shutdown used the same style: a written plan with a gate, agents doing the freeze, export and verification, and my yes on every destructive step.