Spotify Randomizer

Python tool for generating a new Spotify playlist from the artists connected to playlists you already use.

GitHub Repo

Overview

This is a small Python app for making a fresh Spotify playlist without relying on the same recommendation loop every time. It pulls from the artists connected to playlists you already use, then builds a new playlist from a few different randomization methods.

Setup

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

Notes

The app uses Spotify's PKCE login flow, so no client secret is stored. It can skip tracks already in your main playlists and start playback immediately if you want it to.

In Use

Spotify Randomizer application window

Included Features

Playlist Sources

Starts from playlists you already use instead of a generic catalog seed.

Artist Expansion

Pulls from artists connected to those playlists to widen the pool.

Random Modes

Builds fresh playlists through several different randomization methods.

Duplicate Filtering

Can skip tracks that already live in your main playlists.

PKCE Login

Authenticates without storing a Spotify client secret.

Playback Start

Can begin playing the new playlist immediately after generation.