Skip to content

amadejkastelic/24ur-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Unofficial API for 24ur.com

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages