Skip to main content

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.

Metadata

Release files for rtpplayapi 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rtpplayapi 1.0.4
File Size Uploaded Provenance Actions
rtpplayapi-1.0.4.tar.gz 27.6 kB Without provenance Details for rtpplayapi-1.0.4.tar.gz

Release files / rtpplayapi-1.0.4.tar.gz

Download URL rtpplayapi-1.0.4.tar.gz
Size 27.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2519aa024db297779943740fcc63c50b76634fe6ef6e6f773eed8e19b81af67d
BLAKE2b-256 checksum
How to use checksums
e6fc66436169a8f7ebd0d3007b5bb8c60f228347db247fa22458c6d0d07544eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Security for rtpplayapi 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page