Skip to main content

Python library to interact with the jeugdjournaal API

Project description

JeugdjournaalPY

Overview

The jeugdjournaalpy library simplifies interaction with the Jeugdjournaal website and API. It can retrieve article details, participate in polls, read/post comments, and explore articles.

Installation

Install jeugdjournaalpy via pip:

pip install jeugdjournaalpy

Example Usage

import jeugdjournaalpy as jj

# Example: Retrieve article details
article_id = '2528081'
article_details = jj.read_item(article_id)
print(article_details['title'])
print(article_details['content'])

# Example: Vote in a poll
poll_id = 'Zdf'
vote_response = jj.vote_in_poll(poll_id)
print(vote_response)

# Example: Retrieve comments
comments = jj.get_comments(article_id, limit=10)
print(comments)

Documentation

A full documentation can be found here

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

pyjeugdjournaal-0.1.2.dev1.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.

pyjeugdjournaal-0.1.2.dev1-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file pyjeugdjournaal-0.1.2.dev1.tar.gz.

File metadata

  • Download URL: pyjeugdjournaal-0.1.2.dev1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pyjeugdjournaal-0.1.2.dev1.tar.gz
Algorithm Hash digest
SHA256 e696675b7f9a9d3e6e3411236f88726150d0b3027e6d8ab3ee5a203317880667
MD5 7a04731b5e526faa1bba731fb5193028
BLAKE2b-256 fe98d417df5c487e6a51047914e8930f6716574d01cf814a5139be6f4bd1565f

See more details on using hashes here.

File details

Details for the file pyjeugdjournaal-0.1.2.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyjeugdjournaal-0.1.2.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 9804f80e3a7127a132b4d51b289aea9cfa60b7f5dadd36535c20b5d554ff4844
MD5 b72f833e7a7e0a02c704436f8d2f5de5
BLAKE2b-256 50b51de151b84a4d631b9f20bd963fc85ea46364a4300999465f511f602062bf

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