Add README scraper + initial README corpus#12
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6,640 README files fetched locally; ETags stored in github_stars.json so subsequent GHA runs get 304 Not Modified and never repeat the cold start. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
READMEs are public content mirrored from public repos. Secret-looking strings in them (example webhooks, demo OAuth credentials, scanner test patterns) are not real secrets we own or can rotate. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
scripts/scrape_readmes.py: fetches READMEs for all starred repos via GitHub REST API, stores atreadmes/<owner>+<repo>+<filename>, persists ETag/sha/size/status metadata ingithub_stars.json.tests/test_scrape_readmes.py: 13 unit tests (mocked HTTP, tmp_path sandbox). All passing..github/workflows/scrape-readmes.yml: reusable workflow, called bysync-stars.ymlas pipeline step 3.sync-stars.ymlto chain scrape-readmes after update-lists, before deploy..github/secret_scanning.ymlto excludereadmes/**from push protection (READMEs are mirrored public content; example/demo secrets in them are not ours to rotate).github_stars.jsonwith ETags for all repos.Why the corpus is in the PR
The initial scrape took a long time. GHA must not repeat it. Committing the corpus + ETags means every subsequent GHA run issues conditional GETs and gets 304 Not Modified for unchanged READMEs — no content re-downloaded, no cold start.
GHA metadata preservation
All three scrapers load-merge-save
github_stars.json; thereadmeblock survivesscrape_stars.pyandupdate_star_lists.pywrite cycles intact (verified by code review).Smoke test plan (before merging)
scrape-readmesworkflow manually on this branchnot_modifiedfor essentially all repos🤖 Generated with Claude Code