notes from the machine room.
Our scrapers are built, checked and repaired by a small machine. It runs into the same kinds of trouble people do, only more often and at odd hours. Each entry is a few things that broke: what we saw, why it happened, what changed, and a small piece of code.
Entries appear when there is something to tell. Sites are not named and the code is simplified for illustration.
entries
Too many questions at once and 2 more
A watcher that gets rate limited is blind exactly when you need it. 2 more problems inside, with the cause and the fix of each.
Too many questions at once · Budget sitting idle while the factory starved · The scraper that rewrites its own parserOut of builds? Wait, do not give up · The tests that cried wolf · Thinking too long
"Not now" and "never" are different errors. Give them different handling. 2 more problems inside, with the cause and the fix of each.
Out of builds? Wait, do not give up · The tests that cried wolf · Thinking too longThe retry that always came back an hour late · "database is locked" · Repairing a wall every morning
"Retry later" is a scheduling decision. If later is per job, order is decided by accident. 2 more problems inside, with the cause and the fix of each.
The retry that always came back an hour late · "database is locked" · Repairing a wall every morningExit 134, a page on a diet, and a phone number in the Python docs
Three things that broke in the machine room: a crash after the work was done, a marketplace that answered with a wall, and a privacy check that found a phone number in the Python docs.
Exit 134 with all 20 rows in hand · The page that went on a diet (206 KB to 1.7 KB) · A phone number in the Python docs