From 916c5d84d74e816ed9f6f49293728802af63de8c Mon Sep 17 00:00:00 2001 From: Dotty Dotter Date: Wed, 8 Apr 2026 23:41:23 +0200 Subject: [PATCH] Activate Hamburg via ParLDokAdapter reuse (#28, Phase 1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hamburg's parldok runs ParlDok 8.3.1 (J3S GmbH) — kompatibel mit der MV-Variante (8.3.5). Selber /parldok/Fulltext/Search-Endpoint, selbe Body-Schema, selbes Hit-Format. Dadurch ist der existierende ParLDokAdapter aus #4 ohne Code-Änderungen wiederverwendbar. Eingetragen wurde nur: - ADAPTERS["HH"] = ParLDokAdapter(base_url=buergerschaft-hh.de, wahlperiode=23, prefix=/parldok, document_typ="Antrag") - bundeslaender.py::HH.aktiv = True Smoke-Test (lokal): HH q="": 8 hits in 1.5s, jüngste WP23-Anträge sortiert newest-first HH q="Schule": 1 hit in 13.2s (HH ist klein, WP23 erst seit März 2025, HH nutzt eher "Kita"/"Bildung"/"Lehrkräfte" im Titel) HH q="Klima": 2 hits Verifikation HH ist 8.x: curl https://www.buergerschaft-hh.de/parldok/ | grep generator → "ParlDok 8.3.1, entwickelt von der J3S GmbH" Dies ist der zweite Phase-1-Win — ein nahezu kostenloser Adapter- Reuse weil das Backend identisch ist. Anders als BW (#29), das eine eigene PARLISAdapter-Klasse brauchte, braucht HH gar keinen neuen Code. Phase 1 (2/3) aus Roadmap-Issue #49. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/bundeslaender.py | 8 +++++++- app/parlamente.py | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/app/bundeslaender.py b/app/bundeslaender.py index a45f8a9..1768897 100644 --- a/app/bundeslaender.py +++ b/app/bundeslaender.py @@ -187,7 +187,13 @@ BUNDESLAENDER: dict[str, Bundesland] = { doku_base_url="https://www.buergerschaft-hh.de/parldok", drucksache_format="23/1234", dokukratie_scraper="hh", - anmerkung="Wahl am 02.03.2025; Senat Tschentscher III seit 07.05.2025 vereidigt.", + aktiv=True, + anmerkung=( + "Wahl am 02.03.2025; Senat Tschentscher III seit 07.05.2025 " + "vereidigt. ParlDok 8.3.1 (J3S GmbH) — kompatibel mit der MV-" + "Variante (8.3.5), gleiches /parldok/Fulltext/Search-Schema. " + "Aktiv via ParLDokAdapter-Registry-Eintrag in #28." + ), ), "HE": Bundesland( code="HE", diff --git a/app/parlamente.py b/app/parlamente.py index bb37e74..d0b94a5 100644 --- a/app/parlamente.py +++ b/app/parlamente.py @@ -1700,6 +1700,14 @@ ADAPTERS = { prefix="/parldok", document_typ="Antrag", ), + "HH": ParLDokAdapter( + bundesland="HH", + name="Hamburgische Bürgerschaft (ParlDok)", + base_url="https://www.buergerschaft-hh.de", + wahlperiode=23, + prefix="/parldok", + document_typ="Antrag", + ), "BY": BayernAdapter(), "BW": PARLISAdapter( bundesland="BW",