Compare crawls before and after

Diff two saved audits or scans without crawling again. See which findings entered, which left, and what changed in a declared URL migration.

What it does

Four buckets, one rule

Every finding lands in entered, left, appeared or disappeared. Left means both crawls fetched the URL and the finding is gone. Disappeared means the later crawl never fetched the URL, so it proves nothing about a fix.

  • Different recorded crawl settings are refused unless you pass --force.
  • A native crawl and an imported export may find different URL sets, so compare them only with compatible scope.
  • A check skipped in the later run keeps a warning on its buckets.

Migrations

To compare across a URL change, declare the pairs in a url-correspondence.v1 file and pass it with --correspondence. Matching is exact: SpiderHead does not guess pairs from titles, redirects or content. The result is a release review with page facts and finding deltas for each declared pair.

  • origin_map covers whole-origin moves.
  • A declaration holds at most 10,000 explicit pairs and 10,000 origins.
  • Larger declarations are refused, never truncated.

Large audits and single URLs

Audits above 10,000 pages or issues need an explicit --out-dir. It receives a new compare.v2 folder of NDJSON streams and a manifest, with optional gzip. Read it afterwards without recomputing.

  • compare-read pages one stream with filters and sorting.
  • compare-report writes a Markdown summary that contains no page URLs.
  • compare-url shows before and after facts for one exact URL.
  • compare-status and --resume continue an interrupted job.

Three steps, one saved scan

  1. Save a scan for each side

    Run crawl-site before and after the change, or import an audit from exports. Each run leaves one saved file you can compare later.

  2. Diff the two saved files

    compare-crawls reads both files and sorts every finding into entered, left, appeared or disappeared. It fetches nothing.

  3. Tell a fix from a missing page

    left means the URL was fetched by both crawls and the finding is gone. disappeared means the URL was not rechecked, so it proves nothing. Use verify-fixes for a verdict on specific findings.

Checks in this feature

CheckWhat it meansSeverityEvidence
BROKEN_PAGE_4XXA page returns a 4xx. The diff shows whether it entered (new breakage) or left (fixed on a URL both crawls fetched).CriticalBefore and after finding rows for the same URL
SERVER_ERROR_5XXA page returns a 5xx. The same entered, left or disappeared logic applies between the two crawls.CriticalBefore and after finding rows for the same URL
TITLE_MISSINGThe title element is missing on a page. A regression shows as an entered row, a fix as a left row.CriticalBefore and after finding rows for the same URL
REDIRECT_CHAINA redirect chain has two or more hops. Useful after a migration to confirm chains were not added.ImportantBefore and after finding rows for the same URL
CANONICAL_MISSINGAn indexable page has no canonical URL. Catches canonicals dropped in a template release.ImportantBefore and after finding rows for the same URL
URL_NOT_IN_SITEMAPAn indexable page is missing from the sitemap. Shows whether the sitemap caught up with the release.TipBefore and after finding rows for the same URL

One command

bash
spiderhead compare-crawls --before ./scans/before.sqlite --after ./scans/after.sqlite

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • Two saved audit.json files or scan.v1 SQLite files (--before, --after)
  • Optional: a url-correspondence.v1 file for a migration
  • A new output folder (--out-dir) for large audits

Limits

  • A finding that disappeared is not a fix. Use verify-fixes for a verdict on specific findings.
  • An unmeasured or skipped check cannot show a fix, even if its finding left.
  • No URL matching beyond the pairs you declare.
  • An existing output folder is rejected, never overwritten.

Questions

Does compare-crawls crawl the site again?
No. It reads two saved audit or scan files and makes no requests. verify-fixes is the command that fetches selected URLs again.
Can I compare a native crawl with an imported export?
Only with compatible scope and settings. A native crawl and an imported export can find different sets of URLs. If the recorded crawl settings differ, the comparison is refused unless you pass --force.
A page disappeared from the second crawl. Is it fixed?
Not known. A finding that disappeared means the page was not rechecked. Only left means the URL was fetched by both crawls and the finding is gone.
What about large sites?
Audits above 10,000 pages or issues need an explicit --out-dir. The output is a new compare.v2 folder with NDJSON files and a manifest. Add --compression gzip to shrink the files.
Can it match old URLs to new ones after a migration?
Only with a declared url-correspondence.v1 file that lists origin and path pairs (--correspondence). It does not guess pairs from titles or content.
What does it write to disk?
Small comparisons are returned inline. With --out-dir it writes a new folder with the manifest and one file per stream. Nothing is sent anywhere.

Try it on your own site