Skip to main content

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

Metadata

Release files for abgeordnetenwatch-python 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for abgeordnetenwatch-python 0.1.0
File Size Uploaded Provenance
abgeordnetenwatch_python-0.1.0.tar.gz 26.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for abgeordnetenwatch-python 0.1.0
File Interpreter ABI Platform
abgeordnetenwatch_python-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 59.2 kB

Release files / abgeordnetenwatch_python-0.1.0.tar.gz

Download URL abgeordnetenwatch_python-0.1.0.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1363470e3e2750ac9cce299979d13e9728ed05608a07cb3d9672e2e883fdc495
BLAKE2b-256 checksum
How to use checksums
f6d407f837bf5c35041844884ec33e0587522d74edac9a406ddbe4f36fa774a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / abgeordnetenwatch_python-0.1.0-py3-none-any.whl

Download URL abgeordnetenwatch_python-0.1.0-py3-none-any.whl
Size 32.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c473b582e4c79705d76e953e6489dab9f719dcea308c884f1df4950cbb8b8e5
BLAKE2b-256 checksum
How to use checksums
3cff3d4a81a3532eab3a2dff6466793fd397da77ea18728c2c4773d3f587440d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for abgeordnetenwatch-python 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page