Skip to main content

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(1234567)
print(article.title)
print(article.content)

# Get poll IDs from the article
poll_ids = jeugdjournaal.get_poll_ids(1234567)
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


Download files

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

Source Distribution

jeugdjournaal-0.1.8.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

jeugdjournaal-0.1.8-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file jeugdjournaal-0.1.8.tar.gz.

File metadata

  • Download URL: jeugdjournaal-0.1.8.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

Hashes for jeugdjournaal-0.1.8.tar.gz
Algorithm Hash digest
SHA256 0445380b6bc750857f2b30e675bd3169fa697c5a1d0a884d3c44643233958903
MD5 72519d7abf15e97fa8e207d266a8843b
BLAKE2b-256 cb2c3f85604e1b609ade5d6892d23a326a1faf1369363cdaabe32ed18aa890f9

See more details on using hashes here.

File details

Details for the file jeugdjournaal-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: jeugdjournaal-0.1.8-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

Hashes for jeugdjournaal-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 28a0783fd8f4acd3a73fbc7ee62c535704ebdac4764c2a6fa08e4a567f08ebf9
MD5 3a3e702316e1736722ed7b0ff14c27fb
BLAKE2b-256 24835e3623d28478048a1cc4e2266ef1ed32967856a3533e056da554523a5749

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