Python library to interact with the jeugdjournaal API
Project description
Jeugdjournaal (Dutch Youth News) Python Library
A simple Python library for fetching and interacting with articles, polls, comments, and reactions from Jeugdjournaal, made by hcr5.
Installation
You can install the library via pip:
pip install jeugdjournaal
Example Usage
Here’s a quick example to get started:
import jeugdjournaal
# Read an article
article = jeugdjournaal.read_item(2528544)
print(article.title)
print(article.content)
# Get poll IDs from the article
poll_ids = jeugdjournaal.get_poll_ids(2528544)
print(poll_ids.id_1)
print(poll_ids.id_2)
# Vote in a poll
jeugdjournaal.vote_in_poll(poll_ids.id_1["id"])
For more functions and detailed usage, refer to the full documentation.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jeugdjournaal-0.1.9.tar.gz.
File metadata
- Download URL: jeugdjournaal-0.1.9.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82288d648e44ece789ffc9a8d4418318b652997cd78c148d68cdb096e9e3cac3
|
|
| MD5 |
765aa09ff0defd54f4636cf85487351b
|
|
| BLAKE2b-256 |
baa62a007275e42423ae2bc4a8ef1f2a43701a6f8181d532f679465f38ae70cb
|
File details
Details for the file jeugdjournaal-0.1.9-py3-none-any.whl.
File metadata
- Download URL: jeugdjournaal-0.1.9-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7778d10141c31a57fe735a39eceafe2c34125690aaa9634db1c8506b5d261e9d
|
|
| MD5 |
e54df092124ea0fc10cda5b8b8235d36
|
|
| BLAKE2b-256 |
f1feb0aca6d352e10b20f5e76c6e27b03e2b3fc47ec4decdfe1673042a60a648
|