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.2.0.tar.gz
(7.0 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.0.tar.gz.
File metadata
- Download URL: 24ur_api-0.2.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ed1741b4faf7d9496ba4fe9d2a6523e0868a3dcf07c2c747c211821cfa670f3
|
|
| MD5 |
cfeb608f12a3aa8fab7670291c9c7877
|
|
| BLAKE2b-256 |
1ed20118fbe5e2712c9ab817d734a6ff201c2a23991188b1b25f5d61b519f5f2
|
File details
Details for the file 24ur_api-0.2.0-py3-none-any.whl.
File metadata
- Download URL: 24ur_api-0.2.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27f8579dbe9ea290b12e047ff79cf1594d5a67f4ef3a07b16749a480a501633b
|
|
| MD5 |
9b31b931c1c0f6e470a580ffb82194a4
|
|
| BLAKE2b-256 |
2d4c57d6f350906788a5913ea129061b803cad206c0a8b4397643d10a3ccf8e5
|