Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.78 KB

File metadata and controls

57 lines (40 loc) · 1.78 KB

Playlist-of-Podcasts-in-Publishing-Order

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).

Setup

  1. Clone the repo to your local device.

  2. Open the repo in your preferred IDE or editor.

  3. Open your command line and navigate to the directory where you cloned this project.

  4. Create a Virtual Environment using venv. You may replace spotify with your preffered name for the environment.

    python3 -m venv spotify
  5. Activate on Linux/macOS

    source spotify/bin/activate
  6. Install dependencies. via the requirements.txt file

    pip install -r requirements.txt

    or manually

    pip install --upgrade pip
    pip install spotipy
    pip install python-dotenv
  7. Create (or use) your Spotify Developer Account

  8. Sign up at the Spotify Developer Dashboard and create an application to get your Client ID and Client Secret.

  9. 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
  10. Run the app in the command line

    python app.py
  11. Open the Spotify Web App, Mobile App, or Desktop App and view the new playlist.