A simple utility to save the currently playing song on Spotify to your library.
Create an application on Spotify's developer console:
https://developer.spotify.com/dashboard/applications
- Run
$python main.py
to generate aconfig.json
if you don't have one. - In your spotify app, register a redirect URI for auth
- Dashboard > Your application > Edit Settings > Redirect URIs > Add > Save
- The default and recommended value is
http://localhost:5000/callback
but any localhost URI will do
- In
config.json
, replaceauth_callback_uri
with your redirect URI, replaceclient_id
with your app's client_id, replaceclient_secret
with your app's client_secret. - Optionally, replace the default hotkey. Special keys should be in angle brackets (e.x.
<ctrl>
for ctrl) - Re-run
$python main.py
. You should be redirected to your browser to authorize your app with the appropriate scopes. - That's it! Just press your hotkey to save the current song.