Skip to main content

Unofficial 24ur API

Project description

Unofficial 24ur API Client

Installation

pip install 24ur-api
  • With video download support
pip install 24ur-api[download]

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.2.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

24ur_api-0.1.2-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

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