Skip to content

🎧 Get your last weeks listening report from Spotify in a GitHub Gist.

License

Notifications You must be signed in to change notification settings

mporracindie/spotify-gist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotify-gist

🎧 Get your last weeks listening report from Spotify in a GitHub Gist.

spotify-gist

Update a gist to contain your monthly plays on Spotify


📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists

✨ Inspiration

This code was heavily inspired by @jacc music-box.

🎒 Prep Work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a Spotify Application (https://developer.spotify.com/dashboard/)
  • Add your own user to the app under users and access
  • Add http://localhost as valoid Redirect URIs under edit settings
  1. Copy the Client ID and Client Secret
  2. Create a github personal access token here with gist permissions

🖥 Project Setup

  1. Download this repo (or just copy the contents of this file
  2. Run pip install spotipy, PyGithub
  3. Export all the needed env variables and run the file

🤫 Environment Secrets

  • GIST_ID: The ID portion from your gist url https://gist.github.com/<github username>/6d5f84419863089a167387da62dd7081.
  • GITHUB_ACCESS_TOKEN: The GitHub token generated above.
  • SPOTIPY_CLIENT_ID: The client id you got while creating the Spotify app.
  • SPOTIPY_CLIENT_SECRET: The client secret you got while creating the Spotify app.

About

🎧 Get your last weeks listening report from Spotify in a GitHub Gist.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages