Unofficial 24ur API
Project description
Unofficial 24ur API Client
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
Release history Release notifications | RSS feed
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.6.tar.gz
(6.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file 24ur_api-0.2.6.tar.gz.
File metadata
- Download URL: 24ur_api-0.2.6.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aca25a27579b380d432f3445d2815518b210c56d2dcd7f3df7df7c55c6ab1ce0
|
|
| MD5 |
32e4352ac1d3f98ef4082d654bb5a847
|
|
| BLAKE2b-256 |
87ac22607bf5982a0d56590fb8e8410540ee208ba1629622539929a932c21409
|
File details
Details for the file 24ur_api-0.2.6-py3-none-any.whl.
File metadata
- Download URL: 24ur_api-0.2.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40a1964ecf74f3451ad6f36776f66acd0b849fdf4277dde6d83cbddb40fc1444
|
|
| MD5 |
9d8d857968e5582fb9b176861e1f302f
|
|
| BLAKE2b-256 |
3001386c74d797d9ba2130a8f1d433f0ba6049538cd5abc900d2140a4d7bd830
|