Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guipenedo/rtp-play-api
An unofficial python api to fetch media from RTPPlay, based on their mobile API.
https://github.com/guipenedo/rtp-play-api
api api-cli mobile rtp rtp-play rtp-play-api rtp-player rtp-streaming rtpplay rtpplayapi
Last synced: 3 months ago
JSON representation
An unofficial python api to fetch media from RTPPlay, based on their mobile API.
- Host: GitHub
- URL: https://github.com/guipenedo/rtp-play-api
- Owner: guipenedo
- License: mit
- Created: 2021-03-14T22:26:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-17T18:34:31.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T20:08:58.661Z (3 months ago)
- Topics: api, api-cli, mobile, rtp, rtp-play, rtp-play-api, rtp-player, rtp-streaming, rtpplay, rtpplayapi
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 9
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# RTPPlay-API
RTP is the portuguese public broadcaster (Rádio e Televisão de Portugal). Their platform, RTPPlay gives free access to on demand and live tv content.This python package uses [rtpplay's](https://www.rtp.pt/play/) mobile api to fetch their content. As opposed to web scraping, this is not expected to break too often.
*This package is in no way official nor endorsed by RTP.*
## Installation
```shell
pip install rtpplayapi
```## Usage
```python
from rtpplayapi import RTPPlayAPIrtppapi = RTPPlayAPI()
print(rtppapi.search("offline"))
```## Endpoints
**NOTE:** Some endpoints are missing, feel free to 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
- searchLook at the docstrings on rtpplayapi/api.py for example responses and parameter description.