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
Release files for tunein-python 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tunein-python-0.0.1.tar.gz | 15.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tunein_python-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.1 kB
Release files / tunein-python-0.0.1.tar.gz
| Download URL | tunein-python-0.0.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f07eaf8b9861dadef511052ef50838cff00d9ff3706b2c2effc6c1acb483d82
|
|
BLAKE2b-256 checksum How to use checksums |
cc95f3c1c9f434601735b77e78d86f39e1bafad3904f4afc2be7f80e6b762ce3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / tunein_python-0.0.1-py3-none-any.whl
| Download URL | tunein_python-0.0.1-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
319c56d6306dd239637199ca9b63583496df3083cf64e75297a4c8acb07d76d7
|
|
BLAKE2b-256 checksum How to use checksums |
8d7ad912b51bacc8b0408ed7f130b363c103d8058002b83404c9e2c062d613f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|