This projects contains the API for offenesparlament.de. The Scrapers for offenesparlament.de can be found here:
- PLPR Scraper for the protocols of the Bundestag
- Topscraper for all the TOPs with speaker lists
- Agenda Scraper for all TOPs with meta information
To Setup the Database the following steps need to be performed:
-
setup the database from Pretty Session Protocols the get the right schema
-
clone PLPR scraper repository and scrape the session protocols via the PLPR Scraper with
DATABSE_URI=<db_url> python views.py
#e.g.: DATABSE_URL=sqlite:////home/user/db.sqlite python scraper/scraper.py
- scrape TOPs with Topscraper and AgendaScraper
- merge scraped Tops into the Database with the Topmerger
- merge MDBs for MdB Merger
- start the server with
DATABSE_URI=<db_url> python views.py
#e.g.: DATABSE_URL=sqlite:////home/user/db.sqlite python3 plenartracker.py