A web scraper built in China needs maintenance from the first redesign a target site makes, and most of the cost and pain after launch comes from handover gaps rather than from the original engineering. The mistakes below are drawn from the kind of buyer who runs a marketplace intelligence operation: several sources, daily batches, an analyst team waiting on cleaned records, and a vendor relationship that started with a fixed build price. Each entry records what went wrong, the symptom that appeared in operation, the correction that was made, and the handover or contract term that would have prevented it. The recurring theme is that source code handover determines whether maintenance is a scheduled repair or a locked-in dependency, and that retry logic and monitoring set how early a change gets noticed before records go missing.
Mistake one: no selector map for parser repair
What happened. The build was delivered as working code without a documented map tying each source to its selectors, fixtures, and fallback rules. Six months later, the original developer left the vendor’s team, and when a source restructured its listing page, no one on the buyer’s side and no replacement engineer could tell which selector targeted which field. The parser produced empty fields, and diagnosing the break meant reading the whole pipeline backwards.
Symptom. Required fields return nulls on a previously healthy source; the failure looks like an intermittent network problem at first, and records arrive half-empty for several cycles before anyone connects it to a markup change. Retries keep failing because the page itself is fine—the extraction rule is what broke.
Correction and prevention. The handover should include a per-source selector map with one entry per field, a saved fixture page per source for testing, and a note on fallback rules. A competent outside engineer should be able to edit one documented file to repair a broken source without reverse-engineering the code. The full handover package—code, schemas, runbooks, and fixtures—is covered in the scraper handover from China article, and the selector map is the piece most often missing from that package.
Mistake two: redesign repairs assumed to be inside the retainer
What happened. The buyer understood the monthly retainer to cover “keeping the scraper running,” and assumed source changes were routine upkeep. The vendor’s contract treated selector repair after a redesign as a separate billable change, because the retainer covered monitoring and small tweaks, not parser rewrites. When three sources changed in one quarter, the buyer received three separate estimates on top of the retainer, with no agreed unit price for the work.
Symptom. Monthly costs jump unevenly; repair invoices arrive after the work was done; the buyer cannot predict whether the next redesign will be a retainer task or a new project. Negotiating scope under deadline pressure, after records are already missing, puts the vendor in a strong position.
Correction and prevention. Define in the contract what the retainer includes: how many selector repairs per month, what counts as a minor tweak versus a major rewrite, the per-event price for a full parser rebuild, and the response time for a broken source. A separate change rate for redesigns should be attached before kickoff, not quoted after the break. Buyers should also ask how repair work is tested against fixtures before it goes back into production, so a patched selector does not introduce a new failure on another source.
Mistake three: no health signal, so gaps surface through the analyst team
What happened. The pipeline ran on a scheduler with no per-source health report. The buyer learned a source had stopped delivering when the analyst noticed a missing comparison in the daily report—often several cycles after the break began. There was no alert on falling record counts, empty fields, or parser failures, and no baseline to compare the current run against.
Symptom. Quiet gaps rather than loud errors: the scheduler keeps running, other sources keep feeding records, and the missing source is invisible in the overall batch total. Backfilling lost days later requires re-fetching historical pages that may no longer exist.
Correction and prevention. Monitoring should record per source the expected pages per cycle, required-field fill rate, failure count, and response time, and compare each cycle to that baseline. A dead-man’s-switch alert fires if the scheduler stops producing records at all. The failure classes and retry thresholds behind these signals are specified in the reliability and retries article, and the monitoring report should be the same document the vendor uses to decide when to repair a source.
Mistake four: vendor holds the accounts, so exit means a rebuild
What happened. The fetching credentials, network account, database, and storage bucket were all registered in the vendor’s name during development, and stayed there after delivery. When the buyer considered switching teams or moving hosting, there was no account transfer path: the buyer could not see the records, rotate credentials, or export the stored history cleanly. The relationship became a dependency the buyer could not leave.
Symptom. Asking for account access gets a promise rather than a transfer; exports come through the vendor on request; any move to a new team requires rebuilding the network setup and requesting historical records from the old one. The source code handover that does exist is undermined because the runtime environment stays locked outside the buyer’s control.
Correction and prevention. Cloud account, database, object storage, and network accounts should be in the buyer’s name from kickoff, with the vendor holding operator access that can be revoked. Where a vendor account is unavoidable, the contract should specify the transfer steps, the records and credentials that move at exit, and the deletion confirmation after transfer. Hosting-region choices made at build time determine how cleanly this transfer can happen; the options are compared in the hosting and network choices walkthrough.
Mistake five: schema frozen to the first source, new fields rejected
What happened. The normalizer was built around the fields of the first source, with fixed column names and fixed type rules. When a second source added a field the buyer wanted, and the first source later exposed an optional attribute, the schema could not absorb either without a code change. Every new field became a small project rather than a mapping update.
Symptom. Useful data is dropped at extraction because the schema has no place for it; requested fields arrive late; the normalizer accumulates special cases per source until the mapping code becomes hard to change.
Correction and prevention. The schema should be versioned and source-agnostic: shared core fields plus a flexible extension area for source-specific attributes, with the normalizer mapping each source into that common model. Source-specific attributes should land in an extension field rather than forcing a new column for every source, so that unrelated domains can be normalized into one shared record without repeated model changes. Schema changes should carry a version number so old records stay interpretable after the model evolves, and existing records should be checked against the new model before the change goes live.
Mistake six: retry settings copied over without checking the new source
What happened. When a new source was added, the team reused the existing retry logic—attempt count, backoff waits, and pause threshold—without checking how the new source responded. The copied settings were too aggressive for one source, producing repeated requests after slow responses, and too lenient for another, where failures accumulated without a pause condition.
Symptom. One source shows throttling or slowdowns under repeated retries; another keeps cycling through failed pages without alerting. The retry queue grows, and failure rates look normal in aggregate even though one source is misconfigured.
Correction and prevention. Retry count, backoff pattern, failure budget, and pause condition should be set per source during onboarding, measured against the source’s actual response behavior, and recorded in the runbook. Retries should honor any delay the source signals, and permanent refusals should not be retried at all. A restart test should confirm that retry queues and processed keys survive a redeploy without duplicates or lost pending work.
What a maintenance-ready handover looks like in practice
Putting the six corrections together, a maintenance-ready China-built scraper arrives with the repository and commit history, the per-source selector map and fixture pages, the versioned schema and normalizer rules, the runbook with per-source pacing and retry settings, the monitoring baseline and alert routes, and accounts held in the buyer’s name. The buyer’s own engineer or a third-party contractor should be able to deploy from the repository to a fresh environment, repair one broken selector against a fixture, and read the health report without contacting the original team. Maintenance then becomes scheduled work with predictable rates, rather than a series of emergency rebuilds triggered by the next site redesign.
A maintenance cadence helps keep the gaps small. A short weekly review checks the health report across sources, flags any source whose failure or review queue is climbing, and confirms repairs were tested against fixtures. A quarterly review revisits the retainer scope, the schema, and the account ownership, and records which sources have changed markup over the period. The questions to verify before signing are the ones that surface these gaps early: who owns each account, what the retainer covers, how a break is detected, and what artifacts transfer at exit.
Leave a Reply