- Intro: The Spotify Playlist Wizard is an innovative application that leverages the power of the GPT (Generative Pre-trained Transformer) model to generate music playlists on Spotify based on user prompts. This project aims to enhance the music discovery experience for Spotify users by providing personalized and relevant playlists tailored to their specific interests and preferences.
- Tech stack: GPT, Python
- create a virtual environment:
python -m venv env - activate the virtual environment:
source env/bin/activate(all subsequent steps should be performed within the virtual environment) - update pip:
python -m pip install --upgrade pip - install the OpenAI package, the python-dotenv package, and the Spotipy library (a lightweight Python library that provides a simple and convenient way to interact with the Spotify Web API):
or simply
pip install openai pip install python_dotenv pip install spotipypip install openai python_dotenv spotipyaltogether! - accept command line arguments by running
python app.py -p "Independence Day songs" -n 12, for example
- Spotify for Developers: https://developer.spotify.com/
- Spotify web player: https://open.spotify.com/
