This app will create a publishing ordered playlist from a list of podcast shows on Spotify.
NOTE: If you attempt to create a playlist with a name that already exists using the Spotify API, the API will still create a new playlist, even if a playlist with the same name already exists. It does not check for duplicate names.
You may update the code to handle that case how you wish (i.e. update the playlist if it already exists or delete and recreate the playlist).
-
Clone the repo to your local device.
-
Open the repo in your preferred IDE or editor.
-
Open your command line and navigate to the directory where you cloned this project.
-
Create a Virtual Environment using
venv
. You may replacespotify
with your preffered name for the environment.python3 -m venv spotify
-
Activate on Linux/macOS
source spotify/bin/activate
-
Install dependencies. via the
requirements.txt
filepip install -r requirements.txt
or manually
pip install --upgrade pip pip install spotipy pip install python-dotenv
-
Create (or use) your Spotify Developer Account
-
Sign up at the Spotify Developer Dashboard and create an application to get your Client ID and Client Secret.
-
Rename
.env.example
to.env
and update it with your Client ID, Client Secret, and Redirect URI.SPOTIPY_CLIENT_ID=your_client_id SPOTIPY_CLIENT_SECRET=your_client_secret SPOTIPY_REDIRECT_URI=http://localhost:8888/callback
-
Run the app in the command line
python app.py
-
Open the Spotify Web App, Mobile App, or Desktop App and view the new playlist.