Inspiration

Wanted a simple way to turn “I like these artists” into a ready-to-play playlist—without spending forever searching.

What it does

Spotipy takes a list of artists the user likes and generates a playlist of songs pulled from those artists’ discographies. It: searches Spotify for each artist, gathers albums/singles for each artist, and prints a clean playlist with Spotify links

How I built it

Built Spotipy in Python using the Spotify Web API through the spotipy library. Artist lookup was done by mapping artist names aka Spotify artist IDs. Discography collection was obtained by fetching albums/singles for each artist. Track sampling was done by pull tracks from each album and sample a few per release. Playlist assembly: by track ID, shuffle, and limit to a target length. Output is a terminal-friendly formatted list.

Challenges we ran into

Getting Client ID/Secret into environment variables correctly and troubleshooting. Certain endpoints returned error 403 because of Spotify’s policies with the developer app, so I adjusted the approach to rely on just sampling rather than endpoints.

Accomplishments that we're proud of

Managed to build a working end-to-end playlist generator that goes from user input to real Spotify track links.

What we learned

How API actually works in practice with client credentials and environmental variables. How to design around API limitations by changing strategy.

What's next for Spotipy

Add some filters like release date or time range or add maybe some simple explanations for each track.

Built With

Share this project:

Updates