Skip to content

Correct crawler fingerprints and exact deduplication semantics - #76

Merged
gitgik merged 1 commit into
masterfrom
users/gitgik/fix-crawler-identities
Nov 24, 2026
Merged

gitgik merged 1 commit into
masterfrom
users/gitgik/fix-crawler-identities

Conversation

@gitgik

@gitgik gitgik commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Problem

A 32-bit checksum cannot distinguish 15 billion URLs, and a 64-bit document fingerprint has significant population-wide collision risk. Treating equal fingerprints as equal content can discard distinct pages; skipping all processing for equal content also loses base-relative links.

Changes

  • Use SHA-256 to find content candidates, then compare bytes for exact equality.
  • Derive the expected colliding-pair count and probability, clearly separating population risk from per-document risk.
  • Size full digests and normalized URL strings without claiming the totals are deployed capacity.
  • Preserve URL-specific discovery context and distinguish caches or approximate filters from authoritative equality.
  • Correct the robots.txt filename.

Update Markdown and its notebook. Scheduling and checkpoint recovery remain separate work.

Validation

Python checks reproduce 6.10 expected pairs and 99.78% probability for the stated ideal 64-bit model, the storage arithmetic, and distinct relative-link resolutions. The notebook schema passes; code, outputs, and metadata are unchanged. git diff --check passes.

GitHub CI passes on Python 3.9, 3.10, and 3.11. Markdown links and Codacy pass.

No crawler implementation or measured collision experiment is claimed.

Distinguish hash candidates from exact equality, quantify collision risk, preserve URL-specific discovery, and correct fingerprint/URL sizing and robots.txt terminology. Verified the probability, arithmetic, relative-link examples, and unchanged notebook execution state.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7411b498-db61-4f72-8629-4af2b007c3a4
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for this documentation-only clarification of crawler fingerprinting and deduplication guidance.

No open issues 🎉

What changed in this PR

This documentation-only PR corrects the crawler design’s fingerprinting and deduplication guidance, separating exact content equality from URL-specific processing.

Changes:

  • Uses SHA-256 to identify candidates, with byte comparisons confirming equality while preserving base-relative link discovery.
  • Clarifies collision probabilities, storage estimates, normalized URL equality, and the limits of caches and approximate filters.
  • Corrects robots.txt references and synchronizes the Markdown and notebook documentation.
File Description
designing_webcrawler.md Revises deduplication semantics, collision and capacity calculations, and crawler access-rule terminology.
designing_webcrawler.ipynb Mirrors the documentation updates without changing code, outputs, or metadata.

Review effort: Balanced

@gitgik
gitgik merged commit 24a7133 into master Nov 24, 2026
9 checks passed
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