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.7.tar.gz (3.2 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.7-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jeugdjournaal-0.1.7.tar.gz
  • Upload date:
  • Size: 3.2 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.7.tar.gz
Algorithm Hash digest
SHA256 a641a789066560232f0379d94dde0e85095c7355cc9457e69c3f9c9a14a6baee
MD5 be7d83fea8cf23abfa6714bc89eaca27
BLAKE2b-256 73a8a5bb5b38d2f0232ae07d3ece00b2ad4c888f836b6f389f96e1b300283d8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jeugdjournaal-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bdf027a311bcc0f2619a2214eb73db137ac2ecce00954f012d383bf30408163a
MD5 987ff5828591e57a1a5bb4fefae74c54
BLAKE2b-256 402f02c2374285f589c1968bb463e9d9be795cfc8aec183848849cec741c6fc7

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