Skip to content

Add scrape-heal — self-healing scraper loop (JavaScript) - #17

Open
Swastikbhat-lab wants to merge 1 commit into
Germey:mainfrom
Swastikbhat-lab:add-scrape-heal
Open

Swastikbhat-lab wants to merge 1 commit into
Germey:mainfrom
Swastikbhat-lab:add-scrape-heal

Conversation

@Swastikbhat-lab

@Swastikbhat-lab Swastikbhat-lab commented Aug 11, 2026

Copy link
Copy Markdown

Adds scrape-heal to the JavaScript list.

It's a small TypeScript/Playwright loop that solves the boring problem most scrapers hit:
the site redesigns, the selectors stop matching, nothing errors, and you notice a week
later when the spreadsheet comes back empty. It remembers what the last good run looked
like, detects when the output shape drifts, repairs the selectors by finding the elements
that still contain the known-good data, and only ships the repair after re-verifying the
extraction on the live page. Includes a watchdog mode that alerts the moment a run goes red.

Try it in one command (Node ≥ 20) — no clone, no config:

npx scrape-heal --demo --mutate 6 --interval 5 --cycles 8

(one-time: npx playwright install chromium — the loop drives a real browser)

MIT, TypeScript, no runtime deps beyond Playwright, CI-green test suite (31 tests).
Happy to adjust the description if the one-line format needs to be tighter.

A self-healing scraper loop: detects when a site redesign breaks
selectors, derives replacements from the last good run's data, and
only ships a repair after re-verifying it on the live page.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants