have list | missing list | skip list | landed_this_run list | notes dict |
|---|---|---|---|---|
[
"algeria",
"argentina",
"armenia",
"australia",
"austria",
"bahrain",
"bangladesh",
"belarus",
"belgium",
"bolivia",
"brazil",
"bulgaria",
"canada",
"chile",
"china",
"colombia",
"costarica",
"croatia",
"cyprus",
"czechia",
"denmark",
"ecuador",
"egypt",
"estonia",
"e... | [
[
"rs",
"serbia"
],
[
"ba",
"bosnia"
],
[
"al",
"albania"
],
[
"me",
"montenegro"
],
[
"md",
"moldova"
],
[
"ge",
"georgia"
],
[
"az",
"azerbaijan"
],
[
"tm",
"turkmenistan"
],
[
"tj",
"tajikistan"
],
[
"... | [
"us",
"unitedstates"
] | [
"armenia",
"paraguay",
"algeria",
"ecuador",
"bolivia",
"northmacedonia",
"ethiopia",
"panama",
"iceland",
"uzbekistan",
"rwanda",
"belarus",
"mongolia",
"uganda",
"kosovo",
"jamaica",
"senegal",
"nepal"
] | {
"iceland": "false_positive_fixed: already on HF as ipfs_iceland_laws"
} |
JusticeDAO Legal Scrapers
Research collectors that download official legislative sources only (national gazettes and official open-data portals). Intended for building reproducible legal-text corpora, not for production legal research products.
Not legal advice. The official gazette of each jurisdiction prevails.
License
AGPL-3.0 for the collector scripts in this repository.
Contents
scrapers/ includes country collectors, EU/EUR-Lex, shared helpers, and
archive-fallback utilities. Collectors target official gazettes and official
open-data portals only. Cyprus (collect_cy.py) uses the Government Printing
Office at mof.gov.cy/gpo; cylaw.org is unofficial and is not included.
Shared helpers
collector.py,common.py,collect_remaining.pyarchive_fallbacks.py— Wayback Machine and Common Crawl CDX lookupsprobe_cdx.py— CDX probe helpercollect_blocked_archives.py— archive fallbacks for blocked official hostscollect_pt_ro_lt_archives.py— PT/RO/LT Wayback and Common Crawl fallbackscollect_spa_playwright.py— Playwright SPA rendering for JS-only official portals
EU and large official corpora
collect_eurlex.py(EU)collect_gii.py(DE, Gesetze im Internet)collect_boe.py(ES, Boletín Oficial del Estado)collect_bwb.py(NL, Basiswettenbestand)collect_legi.py(FR, Légifrance)collect_fedlex.py(CH, Fedlex)
EU member-state collectors
collect_at.py(Austria)collect_be.py(Belgium)collect_bg.py(Bulgaria)collect_cy.py(Cyprus — official GPO / mof.gov.cy only)collect_cz.py(Czechia)collect_dk.py(Denmark)collect_ee.py(Estonia)collect_fi.py(Finland)collect_gr.py(Greece)collect_hr.py(Croatia)collect_hu.py(Hungary)collect_ie.py(Ireland)collect_it.py(Italy)collect_lt.py(Lithuania)collect_lu.py(Luxembourg)collect_lv.py(Latvia)collect_mt.py(Malta)collect_pl.py(Poland)collect_pt.py(Portugal)collect_ro.py(Romania)collect_se.py(Sweden)collect_si.py(Slovenia)collect_sk.py(Slovakia)collect_egov_laws.py(Japan, e-Gov 法令検索)collect_justice_laws.py(Canada, Justice Laws XML)
Mexico and China collectors
collect_leyes_biblio.py(Mexico, Cámara de Diputados LeyesBiblio)collect_npc_flk.py(China, NPC 权威发布 / official HTML)fill_cn.py(China, second-pass PDF + Wayback fill)
Archive fallbacks
When a live official host is blocked, incomplete, or JS-only, collectors may use:
- Wayback Machine CDX/capture replay of the official URL
- Common Crawl CDX indexes of the official URL
- Playwright for official single-page applications that do not emit HTML without a browser
Fallbacks still retrieve official gazette or official-portal snapshots only. They do not substitute unofficial aggregators (including cylaw.org).
Additional official collectors
collect_lom_agc.py(my)
Additional official collectors
collect_peraturan.py(id)
Additional official collectors
collect_sso_agc.py(sg)
Disclaimer
These scripts are research tools. They do not produce official consolidations. Not legal advice. The official gazette prevails.
Other official national collectors
collect_indiacode.py(India, India Code Central Acts)collect_knesset_laws.py(Israel, Knesset OData / Reshumot PDFs)collect_boe_laws.py(Saudi Arabia, BOE laws.boe.gov.sa — Wayback of official URLs)collect_kuwaitalyawm.py(Kuwait, الكويت اليوم category القوانين + e.gov.kw)collect_egov_laws.py(Japan, e-Gov 法令検索)collect_justice_laws.py(Canada)collect_jp.py/collect_ca.pyaliases where presentcollect_federal_register.py(Australia, Federal Register of Legislation / FRL; Acts-first, CC BY 4.0)collect_pco_legislation.py(New Zealand, PCO / legislation.govt.nz public acts; Wayback of official URLs; no live WAF bypass)
- Downloads last month
- 230