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.
The following prerequisites can all be imported using pip.
- Python 3.4 or higher
- spotipy
- pandas
- numpy
- json
- Clone the repository
git clone https://github.com/ethrya/weightedShuffler.git
-
Create an app and get a client ID and secret from
-
Complete the config.py file.
- Create the spreadsheet of songs using
python sheetMaker.py
-
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.
-
Play songs with weightings by running
python shuffler.py