Skip to content

Shuffle songs in a spotify playlist based on user defined ratings

License

Notifications You must be signed in to change notification settings

ethrya/weightedShuffler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weightedShuffler

Weighted Shuffler for Spotify

Python code which utilises the spotipy module to add a random selection to songs to the queue based on user defined weightings.

Prerequisites

The following prerequisites can all be imported using pip.

  1. Python 3.4 or higher
  2. spotipy
  3. pandas
  4. numpy
  5. json

Installation and setup

  1. Clone the repository
git clone https://github.com/ethrya/weightedShuffler.git
  1. Create an app and get a client ID and secret from

  2. Complete the config.py file.

Usage

  1. Create the spreadsheet of songs using
python sheetMaker.py
  1. Update the weightings for each song by changing the relevant value in the 'weightnings.xlsx' spreadsheet. Weightings reflect the relative 'rate' at which songs are chosen.

  2. Play songs with weightings by running

python shuffler.py

About

Shuffle songs in a spotify playlist based on user defined ratings

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages