Inspiration

We noticed that, although there are 4000+ genres categorizable by Spotify, only the most popular genres get their own playlists. This means that thousands of genres go unnoticed. In addition, those playlists have a limit of songs and the user may get tired of them at a certain point. We wanted to create an inclusive solution for this using the Spotify Web API.

What it does

Our program takes user input like the number of songs in the playlist, the genre of it, and how dance-able (based on song beats, tone, etc) the playlist should be. This is all included in a query call to the HTTP client and a specific playlist is created.

How we built it

After researching different Spotify algorithms such as Spotipy and Spotify Web API, we watched a few videos on YouTube API integrations with Spotify and used those examples to learn how to make calls to access the API.

Challenges we ran into

Both of the coders on our team had limited experience with APIs, so we had to learn how to decode JSON files to debug, how to call a web API, and how to get a specific token that would be able to modify a playlist. We ran into problems when trying to call the API because the Spotify Web API token is very short-lived and we had to keep generating new ones.

Accomplishments that we're proud of

We're proud we were able to write code that successfully called an API and that we were able to finish our initial idea.

What we learned

We learned a lot about API integration as well as brushed up on our Python.

What's next for Spotirecs

We eventually want to be able to make an even more customizable playlist token that can be based upon a specific artist or even a specific song. These can even be further broken down by possibly integrated another API so we can make playlists based on the current weather.

Built With

Share this project:

Updates