kabirvirji / singlespotify
- понедельник, 13 марта 2017 г. в 03:12:19
JavaScript
Create Spotify playlists based on one artist through the command line
Create Spotify playlists based on one artist through the command line
npm install -g singlespotify
Note: Node version 7.7.1+ required. It can be downloaded here
$ singlespotify --artist [-a] "artist_name" --config [-c] /path/to/config.json
Create a config.json
file that looks exactly like this:
{
"username":"",
"bearer":""
}
You can get the bearer token here: https://developer.spotify.com/web-api/console/post-playlists/
Click GET OAUTH TOKEN and make sure to check playlist-modify-public
singlespotify --help
Usage
$ singlespotify --artist [-a] "artist_name" --config [-c] /path/to/config.json
Example
$ singlespotify -a "Kanye West" -c /Users/kabirvirji/config.json
For more information visit https://github.com/kabirvirji/singlespotify
Shoutout to kshvmdn for all the help!