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

$ fbiplaying -n N

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. 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.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

fbiradio-0.0.1-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

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