My Liked Songs
i
Click to learn how this was built
I got into the habit of adding every song I listen to to my liked songs on Spotify. As a result, my liked songs are a reasonably accurate estimate of every song I've ever listened to (or at least listened to this past decade).
How was this built?
- A Python script authenticates with the Spotify Web API using OAuth (PKCE flow).
- It reads every saved track from the Spotify saved-tracks endpoint.
- The script generates a static JSON file containing each song's title, artist, album, Spotify link, and date added.
- The JSON is committed and pushed to the website's GitHub repository.
- This page reads the JSON and renders it as a searchable list.