/abgeordnetenwatch-python

Small utility programs to use the abgeordnetenwatch-api in python.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

abgeordnetenwatch-python

Siehe hier für die deutsche Anleitung.

Small utility programs to use the abgeordnetenwatch-api in python.

Installation

To use this script install python3 and pip.

Install requirements with

pip install -r requirements.txt

Usage

You can download all questions and answers from a politician with the following script:

# -v for verbose output
python3 src/load_questions_answers.py --firstname "Angela" --lastname "Merkel"

# try this for more options
python3 src/load_questions_answers.py --help

This will create a file data/079137_Angela_Merkel.csv with all questions and answers of the specified person.