Skip to main content

Find currently playing track on FBi Radio

Project description

FBi Radio currently playing

Find out which track is currently playing on FBi Radio, Australia's best radio station.

Installation

Install from PyPI:

pip install fbiradio

Or clone this repository and install locally:

git clone https://github.com/cchristiansen/fbiradio/
cd fbiradio
pip install .

Usage in console

List the last N tracks by replacing N for 5 or any other positive integer. If N is 0, all tracks that have been played in the current radio show are displayed.

$ fbiplaying -n N

If no number is given, the latest track is displayed.

$ fbiplaying
01:37 pm: SOPHIE - UNISIL

Import as library

import fbiradio

# Get the last three tracks
tracks = fbiradio.currently_playing(n=3)

# Find the artist name of the first track
print(tracks[0].artist)

# Find when the second track was played
print(tracks[1].played_at)

# What was the track name of the latest track?
print(tracks[-1].track)

# Show all information on the latest three tracks
for track in tracks:
    print(track)

Disclaimer

Aside from supporting the radio station and loving the music FBi plays, I am not affiliated with the station in any way, shape or form.

Copyright

Copyright 2021, Christian Christiansen.

Code is distributed under GNU Affero Public License 3.

Listen to 94.5 FM. Peace out.

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

fbiradio-0.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

fbiradio-0.0.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file fbiradio-0.0.2.tar.gz.

File metadata

  • Download URL: fbiradio-0.0.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for fbiradio-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9307aba6ea4989ed779e331edb746f18360b90875aa53d634ff85e0208a32a1f
MD5 0307253fc82fdda4c4b1936accfb9f0e
BLAKE2b-256 ce1bf71eb2cd75f2061113bb1b9be6847663bd0c48971da168dfcb327f39ea71

See more details on using hashes here.

File details

Details for the file fbiradio-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fbiradio-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for fbiradio-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 564cac8c221e1a06f4fc540e79e9790ef9061e7c5b13fa334c00734d7eaaa3a9
MD5 5677dcd2bf9b18c6cae9068a5255bf02
BLAKE2b-256 f236c0feb885d406302d505ac77261f31989d9452025c05ffeb8a8f3b8d07b37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page