scrapers for icrc mayo spor - #24
Open
mkieffer1107 wants to merge 11 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds and hardens permission-gated scrapers for ICRC, Mayo Clinic, and the SPOR Evidence Alliance.
The scrapers support official inventory discovery, clinical relevance filtering, HTML/PDF parsing, source-format metadata, timing instrumentation, stale-link handling, and quality-preserving OCR fallbacks.
What changed
ICRC
Mayo Clinic
SPOR Evidence Alliance
Format and provenance metadata
Every successful record includes:
metadata.source_format_types, such ashtmlandpdf;metadata.source_media_types, such astext/htmlandapplication/pdf;provenance.content_type = text/markdownfor normalized output;Validation
The expanded live validation produced 204 successful documents:
Across those 204 records:
A separate distributed validation sampled beginning, middle, and final corpus positions instead of only taking the first N items:
The full findings are documented in:
datasets/SCRAPER_VALIDATION_ICRC_MAYO_SPOR_2026-08-26.mdThroughput improvements
The request policy, retry behavior, conversion quality gates, and OCR behavior were not relaxed.
Processing time now counts toward the existing minimum request interval instead of always adding a complete delay afterward. ICRC manifest runs also reuse one shop browser.
Before/after outputs matched exactly on IDs, titles, URLs, content hashes, byte counts, section counts, formats, media types, conversion backends, and source-PDF hashes. No throughput improvement came from skipping or shortening documents.
Main remaining bottlenecks:
Safety and operational behavior
outputs/are ignored by Git and are not included in this PR.Tests
120 passed216 passeduv run ruff check .: passedgit diff --check: passeduv build --offline --package amfv-datasets: passed