Creating set lists from Spotify playlists with Python
The purpose of this project is to retrieve playlists for romantic songs in various categories from the Spotify Developer API and use the playlists to curate a master list of songs based on playlist results as the basis for other projects. The script produced a list of over 2,000 songs based on 50 playlists with the search term "Country Romance" and 800 songs for "Hip Hop Romance".
There is quite a bit that can be retrieved and the documentation provides some opportunities to explore results based on query types. Developer API documentation for Spotify
- Create a developer account on Spotify to obtain credentials.
- Clone or fork this repository and create a file named config.py to hold the above in the following variables: "clientId" and "clientSecret"
- Adjust search parameters, the default being "hip hop romance"
- The script will retrieve 50 playlists basic information for the songs within and store in a CSV file
- docs folder holds explanation webpage
- script in spc.py and config.py should be placed here
- files contains the CSV and JSON files produced as a result of running the script.
The webpage for this project is here: sound_effects
The lyrics for the song lists were pulled using the Genius API and the code is here: cupid_shuffle