Expand description
GitHub source: Search-API trending collection and user repo listing.
Two clients, two policies, on purpose:
reposclient keeps fetch-kit’s built-in retry (3 attempts) — the core REST API allows 5000 req/h and transient failures are cheap.searchclient disables built-in retry and drives its own loop: requests are paced to the authenticated Search budget (30 req/min) and 403/429 answers back off viaretry-backoff, whose exponential schedule reaches 60s — beyond fetch-kit’s 30s built-in max.
Structs§
- Github
Source - GitHub trend source.
Constants§
- GITHUB_
WEB_ ROOT - Web root used to synthesize repo URLs when the payload omits them.
Functions§
- parse_
search_ json - Parse a GitHub search response body into subjects (used by tests and available to callers who capture raw payloads).