Add source: govpl (gov.pl government press releases)

#9
by ppuzio - opened
Slayer Labs org

gov.pl — Polish government press releases

Adds govpl: ministry/agency press releases published under CC-BY-SA-4.0 (gov.pl site footer: "Treści tekstowe publikowane w serwisie … CC BY-SA 4.0"), government-authored and hosted — a native source fetched directly, not via SpeakLeash.

  • 88,190 documents / 80.7M tokens (tiktoken proxy) across 133 gov.pl subsites
  • Article date range 2005-09-26 → 2026-07-19
  • Build: dropped 24 non-Polish, deduped 1,926 cross-posted articles (exact sha1)

How it's built

gov.pl has no sitemap/API and non-uniform news-section slugs, so enumeration is a committed manifest:

  • src/discover_govpl.py freezes the JS-rendered subsite catalog + probes each landing page for its deepest-paginating news feed → src/govpl_subsites.json
  • src/fetch_govpl.py reads the manifest and crawls with pure stdlib (resolves alias→canonical feed to fix pagination; resumable; retries transient/IncompleteRead errors)
  • src/test_govpl_contract.py — 6 contract tests

Release

Bumps stable v0.2.1 → v0.2.2 (13 sources, 2,579,963 docs, 6.36B tokens). README + CHANGELOG + phrase-frequency tables/charts regenerated to include govpl.

🤖 Generated with Claude Code

kacperwikiel changed pull request status to merged

Sign up or log in to comment