Skip to content

Takes 100 random tracks from a source playlist, shuffles them, and adds them to a new destination playlist.

Notifications You must be signed in to change notification settings

grantmcconnaughey/Spotify-Playlist-Randomizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Playlist Randomizer

Takes 100 random tracks from a source playlist, shuffles them, and adds them to a new destination playlist.

Fixes two annoying things about the Spotify/Alexa integration:

  1. Spotify will only shuffle the first 100 songs of a playlist.
  2. Alexa does not know how to shuffle songs when played from a routine.

Usage

First, create a Spotify application.

Next, export the following environment variables:

export SPOTIPY_CLIENT_ID='<Your Spotify application client ID>'
export SPOTIPY_CLIENT_SECRET='<Your Spotify application client secret>'
export SPOTIPY_REDIRECT_URI='http://localhost/callback/'

Finally, run python main.py. Every morning at 7:00 am you'll have a fresh playlist called "Working Today." This playlist will contain 100 songs, all of which are pre-shuffled.

About

Takes 100 random tracks from a source playlist, shuffles them, and adds them to a new destination playlist.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages