Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Datenschule/offenesparlament.de

Repository files navigation

offenesparlament.de

This projects contains the API for offenesparlament.de. The Scrapers for offenesparlament.de can be found here:

Setup

To Setup the Database the following steps need to be performed:

  1. setup the database from Pretty Session Protocols the get the right schema

  2. 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
  1. scrape TOPs with Topscraper and AgendaScraper
  2. merge scraped Tops into the Database with the Topmerger
  3. merge MDBs for MdB Merger
  4. start the server with
DATABSE_URI=<db_url> python views.py
#e.g.: DATABSE_URL=sqlite:////home/user/db.sqlite python3 plenartracker.py