GithubHelp home page GithubHelp logo

ethrya / weightedshuffler Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 23 KB

Shuffle songs in a spotify playlist based on user defined ratings

License: GNU General Public License v3.0

Python 100.00%
spotify spotipy python music

weightedshuffler's Introduction

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

weightedshuffler's People

Contributors

ethrya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.