Skip to main content

Download and parse parliamentary documents from the Dutch Lower House website

Project description

Search for official documents of the Dutch Lower House (Tweede Kamer) and extract relevant data.

Note that this is work in progress. The package may not work properly. Currently only queries for motions (moties) and amendments (amendementen) are supported.

Simple example

from tkdocs import query_tk

data = {
    'query': 'referentiewaarden,minimumloon',
    'fromdate': '2017-03-15',
    'todate': '2023-01-01',
    'operator': 'and',
    'doc_type': 'motie',
    'dir_results': '../data/wml',
    'download_files': True
}

query_tk(**data)

This will search for motions with search query referentiewaarden AND minimumloon, between 15 March 2017 and 1 January 2023.

Results will be stored as an excel file containing data including date, title, who sponsored the motion, and how parties voted (../data/results.xlsx). Since download_files was set to True, the pdf’s containing the motion text will be downloaded as well, and stored in ../data/files.

Als long as you don’t change dir_results, results will be merged if you do multiple queries.

For all options, see help(query_tk).

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

tkdocs-0.0.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

tkdocs-0.0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file tkdocs-0.0.3.tar.gz.

File metadata

  • Download URL: tkdocs-0.0.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for tkdocs-0.0.3.tar.gz
Algorithm Hash digest
SHA256 77d8540f2ca8b70827ece166b26f4e12859c3e3fb763bd5423906e9bb18a573c
MD5 2821925045687c2b62f7274860ab7ef5
BLAKE2b-256 94f91e230b396bb198834b2d7f5528d3792f2b787446674af9b7a5aef43a6f69

See more details on using hashes here.

File details

Details for the file tkdocs-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: tkdocs-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for tkdocs-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5a279cfff4034c5c6f03aaf7b33389c75952171c231aa7d8af754cb6b5d646e5
MD5 bb8414843e6b326c51604b346c7289f6
BLAKE2b-256 28e67757516f4aa79564a46f64225a13b61894311813dd81728f59e9ccc6dda7

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