Skip to content

tkriik/spotify-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotify-repl

Random Clojure functions for personal Spotify management

Dependencies

  • Leiningen
  • Spotify account

Setup

  1. Register a dummy application (eg. spotify-repl) as shown here
  2. Create a resources/config.edn with :client-id and :client-secret set accordingly. See resources/config-template.edn for reference
  3. Run lein repl
  4. Run (authorize!) and give access via your browser
  5. Copy the code query parameter from the example site you're redirected to
  6. Run (refresh-tokens! "...") with the code you copied
  7. Now you should be able to use the rest of the API routines

Use cases

Follow all artists in a playlist of yours

One of my playlists had over 1400 songs and I wanted to follow all the artists in it. I wrote the follow-playlist-artists! routine to do it for me.

About

utils for personal spotify stuff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages