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
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.1.7.tar.gz
(7.6 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.1.7.tar.gz.
File metadata
- Download URL: 24ur_api-0.1.7.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e16dd84083b567c8aaa5387bf16d3175f6a7f912197e6b61cc897651a61c31cd
|
|
| MD5 |
e6775758d325ef4c755dd0b1d811742b
|
|
| BLAKE2b-256 |
8d04116b0ba0b8b7f94582b609045765ee4e578ec15f3196e07b03a10b851293
|
File details
Details for the file 24ur_api-0.1.7-py3-none-any.whl.
File metadata
- Download URL: 24ur_api-0.1.7-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e55e7543305f20e994477f4ab4e2bb83368680545bf5fc2a4b3afdc3f5e70e7f
|
|
| MD5 |
889e18bc5d9baaeb2081366aa37b307f
|
|
| BLAKE2b-256 |
a4151b8ade84ac5f18d2f62689d3bc37a9932685d2c99c8523db657b5a98b11a
|