Migrate to Bundestag's new conferenceWeekJSON endpoint#7
Open
Migrate to Bundestag's new conferenceWeekJSON endpoint#7
Conversation
…oint The old conferenceweekDetail.form endpoint has been retired by the Bundestag (returns 404 for all dates). This replaces it with the new conferenceWeekJSON endpoint which returns structured JSON, eliminating the need for HTML parsing entirely. - Replace fetchAgenda() to call conferenceWeekJSON and return parsed JSON - Rewrite parseAgenda() to map JSON fields instead of scraping HTML - Remove cheerio dependency (no longer needed) - Update README to reflect the new architecture
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
conferenceweekDetail.formendpoint has been retired by the Bundestag (returns 404 for all dates), breaking the worker's core data fetchingconferenceWeekJSONendpoint which returns structured JSON, eliminating HTML scraping entirelycheeriodependency (no longer needed)Details
The Bundestag replaced their HTML-based agenda page backend with a proper JSON API at
/apps/plenar/plenar/conferenceWeekJSON. This endpoint:?year=...&week=...parametersconferences[].rows[]containingtime,top,topic,statusprevious/nextpointers for navigation between session weeksThe
agendaItemoutput shape is unchanged, so all downstream code (iCal, JSON, XML, CSV output, caching, KV storage) remains untouched.Test plan
conferenceWeekJSONendpoint responds correctly for current, past, and empty weeksnpm run buildsucceeds (webpack bundles to 40.4 KiB without cheerio)