Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

About

Build Spotify playlists from radio station feeds

Resources

Releases

No releases published

Packages

No packages published

Languages