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]

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.1.6.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

24ur_api-0.1.6-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: 24ur_api-0.1.6.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for 24ur_api-0.1.6.tar.gz
Algorithm Hash digest
SHA256 b980e04e5e11d525b9967fc9db20d88b3a9ab526dcc86e54852a1a47380612b0
MD5 3a8830ebf9f6b96272226e18c510f156
BLAKE2b-256 3f99014a1db9127946ee6440b44f5bb50ea98f89ff9f7be887d795205a1c9f28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: 24ur_api-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for 24ur_api-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6418c385f3ce6e688bf358dac400746e7a1479b499efbe686108aa4adecf7911
MD5 d75fbb137950ef17154a31b56be75667
BLAKE2b-256 40e25dc8ea2fdabfa4a26729173147eed786147da905d771399db490711ddc9f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page