An unofficial python api to fetch media from RTPPlay, based on their mobile API.
Project description
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 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
pip install rtpplayapi
Usage
from rtpplayapi import RTPPlayAPI
rtppapi = RTPPlayAPI()
print(rtpapi.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
- search
Look at the docstrings on rtpplayapi/api.py for example responses and parameter description.
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
Built Distribution
File details
Details for the file rtpplayapi-1.0.0.tar.gz
.
File metadata
- Download URL: rtpplayapi-1.0.0.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 240c6d446a44688494b5d40488f73dc29378b7fa2f633551b1e971256ef041b3 |
|
MD5 | 31d11fa700a38659acd42759dd12f932 |
|
BLAKE2b-256 | 613407677976d857034f36673b2f646394460a1de7df292e741a828ee1370f99 |
File details
Details for the file rtpplayapi-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: rtpplayapi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c8c8456ef21c342134305e25db13c208f9dce722f325fc0bbc478b9174b3bd9 |
|
MD5 | 80760cc6c09b2dc893cdc6390ec8f019 |
|
BLAKE2b-256 | d70a8ce5afcb5e0d9762b43fbc10d207bec7acb4bb1222c6be1c4a8b7adb49b7 |