基于RTPPlay移动API的,用于从RTPPlay获取媒体的非官方Python API。
项目描述
RTPPlay-API
RTP是葡萄牙公共广播机构(Rádio e Televisão de Portugal)。他们的平台RTPPlay提供免费访问点播和直播电视内容。
这个Python包使用rtpplay的移动API来获取内容。与网页抓取不同,这不太可能导致频繁中断。
该包绝对不是官方的,也未经RTP认可。
安装
pip install rtpplayapi
用法
from rtpplayapi import RTPPlayAPI
rtppapi = RTPPlayAPI()
print(rtppapi.search("offline"))
端点
注意:一些端点缺失,请随意提交PR。
- get_live_tv_channels
- get_live_radio_channels
- get_slideshow
- get_collection
- get_channel_epg
- get_channel
- get_program
- get_episode
- list_episodes
- list_programs
- search
请查看rtpplayapi/api.py中的示例响应和参数描述。
项目详情
关闭
rtpplayapi-1.0.4.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 2519aa024db297779943740fcc63c50b76634fe6ef6e6f773eed8e19b81af67d |
|
MD5 | de70c67799bdf3c16ed411e6d4d6c8b9 |
|
BLAKE2b-256 | e6fc66436169a8f7ebd0d3007b5bb8c60f228347db247fa22458c6d0d07544eb |