JamesBLewis / triplej-playlist-generator

A cron job written in go that allows you to maintain a Spotify playlist of the most recently played music on the triplej radio station.
https://open.spotify.com/playlist/4wP3HpMngLebZ8pYvXD0Et?si=1d4a2c492aae4731
MIT License
3 stars 1 forks source link
gcp golang music spotify spotify-api triplej

🤖 triplej playlist generator (live playlist)

Automatically generate a spotify playlist from the most recently played music on the triplej radio station.

Getting Started

  1. Register your application on the developer dashboard and obtain the client_id and a client_secret.
  2. Use the authorization code on the official spotify web-api-auth-examples repo to obtain a refresh_token. Make sure to grant access to the correct playlist type when fetching this token. You can read about scopes here. As my playlist is public I only need the playlist-modify-public scope.
  3. Create a playlist in spotify and copy the link to it. Note we just want the playlist_id.
  4. Edit the makefile and add the above config.
  5. run make