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]

Building

Nix

nix build .#default

Development

nix develop

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for 24ur_api-0.2.5.tar.gz
Algorithm Hash digest
SHA256 8e60cc5d0c28fcdab27a29a0418304cfeb2a80e17e5d140a7c53b636ba2f6ef7
MD5 8cdc3b74c7d07495bd22159f4be305bc
BLAKE2b-256 94d65219fb67edf4ebb1155ffb419a450a7545cd3cc779a5cf19f1d82b39c123

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for 24ur_api-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b9eef763e217857c252ebed819c95af8a590af5f65c162e580bcf45b5ba59ccc
MD5 b1d18911d36ba9179f267f4da74d800b
BLAKE2b-256 8e5df46fa8d81ab375376d416e22ea520cdaf9536f9b68381191aa7538d5a194

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