Spotify Randomizer

Python app that builds a new Spotify playlist from the artists in your own playlists.

GitHub Repo

Overview

I made this Python app to build a new Spotify playlist that finds new music and plays some songs I already like. It picks from the artists in playlists you already have.

Setup

You need Python, Spotipy, and your own Spotify developer app. Copy the example config file to my_config.json, add your client ID, client secret and playlist IDs, then run the script or the included batch file.

Spotify Randomizer application window

Included Features

Playlist Sources

Uses your own playlists as the starting point.

Artist Expansion

Picks songs from the artists in those playlists.

Random Modes

Each song is picked at random from your playlists, the same album, or the artist's top tracks or full discography.

Duplicate Filtering

Can skip tracks already in your main playlists.

Playback Start

Can start playing the new playlist right away.