#! /bin/python import webbrowser, os id = input('Enter client id: '); secret = input('Enter client secret: '); callback = input('Enter callback url: '); scopes = input('Enter space-separated scopes: '); webbrowser.get().open("https://accounts.spotify.com/authorize/client_id=" + id + "&response_type=code&redirect_uri=" + callback + "&scope=" + scopes); print('A browser window has been opened asking you to log in to Spotify. Once logged in, you will be redirected to the callback uri you gave, with a parameter containing the auth code.')