Catalog PyPI
PACKAGE EXPLORERView in registry

abgeordnetenwatch-python

PyPI

Fetch questions and answers from german politicians via python classes.

Versions collected1
Direct dependencies5From release 0.1.0
Last observed20 Oct, 17:21 UTC

README

Version 0.1.0 documentation

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 .

Usage

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

# -v for verbose output
load_questions_answers --firstname "Angela" --lastname "Merkel"

# for more options
load_questions_answers --help

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

Converting to txt files

To convert json files to txt, do the following:

convert_qa data/json data/txt txt

# convert to csv
convert_qa data/json data/csv csv

This will create a file data/txt/079137_Angela_Merkel.txt (for all files in data/json).

Load Parliament

To fetch all questions and answers from all politicians from a parliament, you can do the following:

# load "bundestag" using 16 requests simulaneously
load_parliament_qa bundestag -t 16

# for more options
load_parliament_qa --help

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.02 Jun 20255

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:21 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7bd22e7020a4e48a00e662b55da048d4a9ddde1313fb555de6cd75e68fc8ee94