Skip to main content

Unofficial 24ur API

Project description

Unofficial 24ur API Client

License: MIT PyPI - Version Downloads

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.2.2.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

24ur_api-0.2.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: 24ur_api-0.2.2.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for 24ur_api-0.2.2.tar.gz
Algorithm Hash digest
SHA256 b6064e901f8d50af40af259e543c5d4615016d3e4218d6cec406e1f027d5a9b4
MD5 89f9a7a52ddc972ed811b8a06be85bf5
BLAKE2b-256 08e07018576d2e53cb0d7475989e5237bf6ba53ac8c5da155062081013775764

See more details on using hashes here.

File details

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

File metadata

  • Download URL: 24ur_api-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for 24ur_api-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 627ea0d7b0b6340c4b8448815d25f2e46befb0e308255bb99ab92057c498f37b
MD5 8f39fae228995cb276950375c8fd4862
BLAKE2b-256 550882e89b7c5f9e7ac9b1121b2d42b4f32c546ec5dd3d9b0e2fbb4491f9c11d

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