Enter a playlist of songs and target duration to generate a new subplaylist (spotify)
Run it with python3 playlisttime.py
. It will use oauth to authenticate you. After authenticating, find the part of the url that
contains the web token. Enter the web token, your spotify user id (not username) and the name of the new playlsit.
You need a spotify client id and secret key from https://developer.spotify.com/web-api/ and enter it in the program before you run it.