Down below is my code. I'm trying to get a token so I can authenticate. Having a problem because I'm not being redirected to another URL. I've already inputted the URI into my Spotify developer app. Not sure what's wrong or if I'm inputting the URL incorrectly. Inputting as: https://www.google.com/ . Also, currently using google collab if that makes a difference.
#client id and secret for my application
client_id = 'id' # hidden for now
client_secret= 'secret' # hidden for now
scope = 'user-library-read'
if len(sys.argv) > 1:
username = sys.argv[1]
else:
print("Usage: %s username" % (sys.argv[0],))
sys.exit()
auth_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
sp = spotipy.Spotify(auth_manager=auth_manager)
token = util.prompt_for_user_token(username, scope, client_id= client_id, client_secret=client_secret, redirect_uri='https://www.google.com/')