A package to download Dutch parliament debates and subtitles
Project description
tweedekamer
A pypi package for retrieving Dutch parliamentary debate data.
Using this package you can download Dutch parliament debates and subtitles. It is based on the website https://debatgemist.tweedekamer.nl. This package is not affiliated with the Dutch parliament. It is not allowed to use this package for commercial purposes.
This package is still in beta, so expect bugs and missing features.
Installation
Install this package through pip. The package requires Python >=3.7.9
pip install tweedekamer
Usage/Examples
Retrieving subtitles
from tweedekamer import Search
results = Search().getDebates("belasting 2022", limit=1)
results[0].subtitle.text
Retrieving video link
from tweedekamer import Search
results = Search().getDebates("belasting 2022", limit=1)
results[0].video.link
Retrieving speaker information
For each debate there is a list of speakers
from tweedekamer import Search
results = Search().getDebates("belasting 2022", limit=1)
results[0].speakers[0].name
results[0].speakers[0].party
results[0].speakers[0].speach.text
results[0].speakers[0].speach.subtitle
results[0].speakers[0].speach.tokenized
Features
- Retrieve date and info on debate
- Search debates by query, date range, and debate type
- Retrieve subtitle data
- Retrieve video data
Run Locally
Use these instructions if you want to edit the package locally
Clone the project
git clone https://github.com/micheldore/tweedekamer
Go to the project directory
cd tweedekamer
Create the virtual environment (using Python 3)
python -m venv env
source env/bin/activate
Install dependencies
pip install -r requirements.txt
If you want to install the local version of the package
python -m pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tweedekamer-0.0.9b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1702e142e323a6690e146c76f415b27a3e9ce25edb3d877f62e69cec408e7b0 |
|
MD5 | 5b01c9b67bd626d6db995800699566c9 |
|
BLAKE2b-256 | 11d7fdd108186d583f9fc787ce1c5263fc678c82d0b665f9d890a51707e282ce |