Skip to content

Instantly share code, notes, and snippets.

@vlad-ds
Last active February 1, 2020 17:54
Show Gist options
  • Save vlad-ds/5ddc4fa62d11cb3541d7c870eee40a16 to your computer and use it in GitHub Desktop.
Save vlad-ds/5ddc4fa62d11cb3541d7c870eee40a16 to your computer and use it in GitHub Desktop.
import spotipy.util as util
username = 'your-spotify-username'
client_id ='your-client-id'
client_secret = 'your-client-secret'
redirect_uri = 'http://localhost:7777/callback'
scope = 'user-read-recently-played'
token = util.prompt_for_user_token(username=username,
scope=scope,
client_id=client_id,
client_secret=client_secret,
redirect_uri=redirect_uri)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment