github

kabirvirji / singlespotify

  • понедельник, 13 марта 2017 г. в 03:12:19
https://github.com/kabirvirji/singlespotify

JavaScript
Create Spotify playlists based on one artist through the command line



singlespotify 🎵

Create Spotify playlists based on one artist through the command line

Install

npm install -g singlespotify

Note: Node version 7.7.1+ required. It can be downloaded here

Usage

$ 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!