r/coolgithubprojects • • 18h ago

Specter - Compile-once, zero-token web scraping & diff monitoring

https://specterdev.online/

Hi all,

I built Specter (https://github.com/pedroaugusto04/Specter) to serve as a general-purpose scraper and change monitor, so you don't have to write and maintain custom scripts for every single website while still avoiding LLM token costs on routine runs.

How it works

  1. You set it up: Paste a URL, describe what you want in plain text, pick a schedule, and optionally add Email or Telegram for diff alerts.

Then Specter automatically handles the rest:

  1. Compile Once with AI (0-Token Runtime): An LLM inspects the DOM once to generate a deterministic extraction plan. Scheduled runs execute in pure code (Cheerio/Playwright) in milliseconds with zero LLM calls.
  2. Live Validation & Self-Healing: Validates extracted data before saving and only wakes the LLM if consecutive runs fail due to layout changes.
  3. Diff Detection & Alerts: Compares routine extractions against previous snapshots and automatically notifies you via Email or Telegram whenever real data changes occur.

It’s definitely not magic or 100% perfect. In a benchmark across 75 real-world sites (news, docs, GitHub releases, tables, and SPAs) using GPT-6-Luna (medium reasoning), it hit a 72.0% pass rate, with most failures coming from rate limits/timeouts and bot-detection walls like CAPTCHAs (even with mechanisms in place to handle them, some still get through).

It’s completely free to try with some limits per account since i'm definitely not an oil sheikh. Also, while session/cookie auth is supported for pages behind logins, I strongly recommend only using that on a self-hosted setup ( it runs fine even on a cheap, low-spec computer ) rather than pasting active cookies into a third-party app you just found online.

If anyone gives it a try and runs into failures on specific sites or edge cases, I’d be happy to hear about them so I can dig in and keep improving the pipeline. Thank you :)

4 Upvotes

2 comments sorted by

2

u/CapMonster1 8h ago

the edge case i’d test is a repaired extraction plan producing different data from the same page. if the old plan captured sale prices and the repaired one grabs list prices, that could look like a real price increase. do you compare both plans against a saved page before resuming alerts? i’d want to know when the extraction logic changed alongside the data.

1

u/Pitiful_Direction231 2h ago

Thanks for the comment! In Specter, when self-healing repairs an extraction plan, it enforces strict intent preservation and runs a semantic validation step on the new selectors and values. If the confidence score falls below our threshold, the plan is rejected and we don't apply it. If a repaired plan passes validation and captures a different value, you receive an alert highlighting exactly which field changed with the before/after values, and Specter automatically creates a new version of the extraction plan in your history, so you can clearly see that the logic changed alongside the data and easily roll back to the previous version if needed.