Skip to main content

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.\n 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 Debate, Search

results = Search().getDebates("belasting 2022", limit=1)
results[0].subtitle.text

Retrieving video link

from tweedekamer import Debate, Search

results = Search().getDebates("belasting 2022", limit=1)
results[0].video.link

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tweedekamer-0.0.2b1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tweedekamer-0.0.2b1-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file tweedekamer-0.0.2b1.tar.gz.

File metadata

  • Download URL: tweedekamer-0.0.2b1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for tweedekamer-0.0.2b1.tar.gz
Algorithm Hash digest
SHA256 21b7d509f0b3532aad59fe1ad1a981e853f04ca954dc63530a7ecdc92405a5c5
MD5 39a0caad2f66a0f8c7c37c3af87862af
BLAKE2b-256 dd8ef87de07ed8c4eeb0335a5dbcd5b6846af89424dac315512e3ca18d2e35eb

See more details on using hashes here.

File details

Details for the file tweedekamer-0.0.2b1-py3-none-any.whl.

File metadata

  • Download URL: tweedekamer-0.0.2b1-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for tweedekamer-0.0.2b1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ca950794732916eb143d3baef49638c52c0fb88a31d40f9f812db3f5e9e5b19
MD5 12f3c005bf5bfaab25b6f33881213fef
BLAKE2b-256 468f142f22803127d3a73c75806434de2d8ea19b1e871d363f548631c1164743

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page