No description, website, or topics provided.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
migrations
static
templates
.gitignore
Dockerfile
README.md
docker-compose.yml
models.py
plenartracker.iml
plenartracker.py
requirements.txt
run.py
views.py

README.md

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