An unofficial, highly experimental wrapper around TuneIn.
Project description
tunein-python
An unofficial, highly experimental wrapper around TuneIn.
pip?
Later.
How to use
Simple! Import tunein and you have 3 functions for interfacing with TuneIn:
get_popular_stations()- gets the popular stations in your area query: str - the GuideId for the stations. Still working out what does this mean. Returns a list with a dict for each radio station keys:
- name: the name of the station
- id : the id you can use later in the library. scraped from GuideId of station
- logo: an URL to station's image.
-
get_station_metadata(id)- Get stations data: logo, streaming urls, description, subtitle, frequency, language and if it's explicit id:str - a GuideId you obtained earlierreturns a dict with all of the data mentioned above keys:
- streams: a list of dicts looking like
{"reliability": int, "stream_url": str, "media_type": str, "bitrate": int}({"reliability": 99, "stream_url": "http://www.rmfon.pl/tunein/tunein.p[...]", "media_type": "mp3", "bitrate": 128}) - name: a str with the station name (RMF FM)
- subtitle: in API called a slogan, a str with the station's subtitle (Najlepsza Muzyka / The Best Music)
- frequency: if applicable, a float containing most likely FM frequency of the station. May be None (96.0)
- description: a str with a long description of the station (Rozgłośnia nadaje program muzyczno-informacyjny, emitowany 24 godz...)
- language: an str of the station's language (Polish)
- lang: an str of a short-code of the language (pl)
search_for_stations()- Gets stations under the query provided query: str - keywords for the stations
for returns, look at get_popular_stations
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tunein-python-0.0.1.tar.gz.
File metadata
- Download URL: tunein-python-0.0.1.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f07eaf8b9861dadef511052ef50838cff00d9ff3706b2c2effc6c1acb483d82
|
|
| MD5 |
b5f7c84cb9c7e9a71a2f95b847d2c658
|
|
| BLAKE2b-256 |
cc95f3c1c9f434601735b77e78d86f39e1bafad3904f4afc2be7f80e6b762ce3
|
File details
Details for the file tunein_python-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tunein_python-0.0.1-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
319c56d6306dd239637199ca9b63583496df3083cf64e75297a4c8acb07d76d7
|
|
| MD5 |
bb4d3603d69c79c5135981d40f2ace03
|
|
| BLAKE2b-256 |
8d7ad912b51bacc8b0408ed7f130b363c103d8058002b83404c9e2c062d613f9
|