A small playlist generator for spotify
Project description
Diversify
The Project
Diversify is a playlist generator based on the Spofity WEB API and the Spotipy module that aims to use concepts of AI to suggest playlists based on musical preferences between multiple people.
Goals
The goal is to use AI algorithms to generate a spotify playlist based on a user's preference and a friend of his choice. Currently the script will use a genetic algorthm to generate the playlists but this may improve in the future.
How to install
- First you need to get your spotify API key and save it to the .env file.
- Go to spotify application web page,
- login with your spotify account and create a new app
- put whatever name you'd like on the project info and say no to commercial integration
- click on edit settings and whitelist https://edujtm.github.io/diversify/redirect
- get your client ID and client secret (by clicking show client secret)
- put them on a config.ini file and move it to
$HOME/.config/diversify/
- run
pip install diversify
- run
diversify --help
to see if everything went ok.
How to run
$ diversify login
$ diversify playlist PLAYLIST NAME
How to contribute
- This project uses poetry for dependency management
- Clone this repo:
git clone https://github.com/edujtm/diversify.git
cd diversify
andpoetry install
- Then run
poetry shell
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
diversify-0.1.1.tar.gz
(13.4 kB
view hashes)
Built Distribution
diversify-0.1.1-py3-none-any.whl
(15.6 kB
view hashes)
Close
Hashes for diversify-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00a6ab94ffa7991786cc832b75371752f4370bc63351007cf0799b0dc750f4be |
|
MD5 | f663f1de52f0b72900e242af1e7bd038 |
|
BLAKE2b-256 | ef624e000bebcc15a0d7f53f1746f9ae9273c981d93adc229e5199f8aca379ae |