Skip to content
Build Spotify playlists from radio station feeds
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
radio_wrapper
spotify_wrapper
README.md
config.py
radio_to_spotify.py
requirements.txt

README.md

Radio to Spotify

Build Spotify playlists from radio station JSON feeds.

Given a URL with a radio station's recent playlist in JSON format (example), script automatically adds songs to a given Spotify playlist up to a defined song count. Example result playlist.

Works best when called every 5-15 minutes, such as via a cron job.

Requirements:

  • Python requests library
  • Spotify account
  • Spotify target playlist ID
  • Spotify API app with permissions to read & modify account playlists

Get started:

  1. Create a Spotify developer account and app - link
  2. Authorize your Spotify account with the new app and obtain your refresh token
  3. Add your app's client, secret keys and refresh token to config.py
  4. Create a target Spotify playlist and add the ID to config.py (or provide it manually when calling the script)
  5. Find the radio station playlist URL and either add it to config.py (or provide it manually when calling the script)
  6. Call the script python radio_to_spotify.py
You can’t perform that action at this time.