Skip to main content

Unofficial 24ur API

Project description

Unofficial 24ur API Client

Installation

pip install 24ur-api
  • With video download support
pip install 24ur-api[video]

Usage

from api_24ur import client

cl = client.Client()

# Get article by URL with 10 comments
article = await cl.get_article_by_url(url='<article_url>', num_comments=10)

# Download the first video of article with bitrate lower than 2000000b to current dir
await cl.download_video(stream_url=article.videos[0].url, download_path='.', max_bitrate=2000000)
# Or get bytes
await cl.download_video_bytes(stream_url=article.videos[0].url, max_bitrate=2000000)

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

24ur_api-0.1.5.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

24ur_api-0.1.5-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file 24ur_api-0.1.5.tar.gz.

File metadata

  • Download URL: 24ur_api-0.1.5.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for 24ur_api-0.1.5.tar.gz
Algorithm Hash digest
SHA256 18968818cc06d6c99e3cf70c107f902e5bf725b05de4a517320893cc7b2aff1c
MD5 a9c113b344fa6d778b0fc885ff74e120
BLAKE2b-256 2f4f1f19e3b14a2fd0212ddac4cf115088aa605a44a4095567789ca61cd5b231

See more details on using hashes here.

File details

Details for the file 24ur_api-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: 24ur_api-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for 24ur_api-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8ee54fb5d8d56d1be6ad688bc4fa6d30a3eec5cd46d3e6c0bafd8fe512b83f13
MD5 83c42482077cf6f98ba4fa72f1ad87cc
BLAKE2b-256 9969dce91c010609f1dcd0a49d027c82019422c1a4de2e6b86b7f9eb64cee988

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page