Skip to content

peermaute/Spotify_Wrapped_Monthly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Wrapped Monthly

Spotify Wrapped Monthly is a Python script to create a playlist with your top 25 tracks of the last month utilizing the Spotify Web API.

How to use this script

  1. Use your Spotify account to login and activate the developers features of your account here.
  2. Create an application as described here.
  3. The client id and client secret can be found when visiting this application in your dashboard. For the Authorization header of an HTTP request they need to be concatenated divided by a ':' and Base64 encoded.
  4. This guide describes how you get a refresh token. As we use the Authorization Flow, it is only necessary to get the authorization code once and then use it to get an access token and a refresh token. In the script, we simply use the refresh token to get an access token.
  5. The last thing needed is your user id. If you do not know it already, you can use this endpoint to get it.

Environment variables

Environment Variable Description
SPOTIFY_USER_ID Your Spotify User ID
SPOTIFY_REFRESH_TOKEN The refresh token retrieved by using the Authentication Flow. This is used in the script to get a new access token.
SPOTIFY_CLIENTID_AND_SECRET_BASE64 The client id and client secret of your application created in the Spotify Dashboard. They need to be concatenated with a ':' and Base64-encoded.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages