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.2.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

rtpplayapi-1.0.2-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rtpplayapi-1.0.2.tar.gz
  • Upload date:
  • Size: 21.4 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

Hashes for rtpplayapi-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1f01ee3ef59dfc19ec5d7381893562bdae1b371e22b43604a7b1b98dd00a667a
MD5 f4bb5e1c5936db8f54e2bee7e6f6c1d5
BLAKE2b-256 a9b0edeee3c90dc67b8a6b2b03ab3319206561ac2518603c49ddc8b876c116a7

See more details on using hashes here.

File details

Details for the file rtpplayapi-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: rtpplayapi-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 22.0 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

Hashes for rtpplayapi-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b4ca00d3a717547ca5889304a6c6e9f914adf4ff1f50a44784d044a64375d380
MD5 b846af7490594347d3d75cd496ab9e40
BLAKE2b-256 52d7b237d2c76b52b3951a7b6a667ecef21e4ad176593dace919aeb85af0760d

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