Skip to main content

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)

Metadata

Release files for 24ur-api 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for 24ur-api 0.2.6
File Size Uploaded Provenance
24ur_api-0.2.6.tar.gz 6.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for 24ur-api 0.2.6
File Interpreter ABI Platform
24ur_api-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / 24ur_api-0.2.6.tar.gz

Download URL 24ur_api-0.2.6.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
aca25a27579b380d432f3445d2815518b210c56d2dcd7f3df7df7c55c6ab1ce0
BLAKE2b-256 checksum
How to use checksums
87ac22607bf5982a0d56590fb8e8410540ee208ba1629622539929a932c21409
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.4

Release files / 24ur_api-0.2.6-py3-none-any.whl

Download URL 24ur_api-0.2.6-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40a1964ecf74f3451ad6f36776f66acd0b849fdf4277dde6d83cbddb40fc1444
BLAKE2b-256 checksum
How to use checksums
3001386c74d797d9ba2130a8f1d433f0ba6049538cd5abc900d2140a4d7bd830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.4

Security for 24ur-api 0.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page