Skip to main content

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(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
  • 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

rtpplayapi-1.0.4.tar.gz (27.6 kB view details)

Uploaded Source

File details

Details for the file rtpplayapi-1.0.4.tar.gz.

File metadata

  • Download URL: rtpplayapi-1.0.4.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for rtpplayapi-1.0.4.tar.gz
Algorithm Hash digest
SHA256 2519aa024db297779943740fcc63c50b76634fe6ef6e6f773eed8e19b81af67d
MD5 de70c67799bdf3c16ed411e6d4d6c8b9
BLAKE2b-256 e6fc66436169a8f7ebd0d3007b5bb8c60f228347db247fa22458c6d0d07544eb

See more details on using hashes here.

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