MauroCE / Spotify-Wrapped-Weekly

Using Python to grab recently played songs from Spotify API and chart.js to display a SpotifyWrapped.

Home Page:https://maurocamaraescudero.netlify.app/project/spotify_mood_ring/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify Wrapped Weekly

Using Python to grab recently played songs from Spotify API and Charts.js to display a SpotifyWrapped.

How to use this code

For this repository to work, obtain CLIENT_ID and CLIENT_SECRET from Spotify for Developers and create a .env file with these two variables. It should look like this:

CLIENT_ID="your-client-id"
CLIENT_SECRET="your-client-secret"

Once this is set, you can run this code locally by running app.py. The first time you run it, you need to give the authorization and pass the code, however the refresh token should take care of it for future runs. Personally, I am using Heroku to host my Flask App, since it is cheap but works wonders.

About

Using Python to grab recently played songs from Spotify API and chart.js to display a SpotifyWrapped.

https://maurocamaraescudero.netlify.app/project/spotify_mood_ring/


Languages

Language:Python 52.8%Language:CSS 27.8%Language:HTML 19.4%Language:Procfile 0.0%