Skip to content

Instantly share code, notes, and snippets.

@treyholt
Forked from healthiq-treyHolterman/script.py
Last active August 26, 2019 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treyholt/6a0af56197c195fcf5be2c282cd3b819 to your computer and use it in GitHub Desktop.
Save treyholt/6a0af56197c195fcf5be2c282cd3b819 to your computer and use it in GitHub Desktop.
Spotipy Main Setup
import sys
import spotipy
import spotipy.util as util
if __name__ == '__main__':
username = "<Your Username (or user number) here>"
token = util.prompt_for_user_token(username,scope = 'user-top-read',client_id='<Your client ID>',client_secret='<Your client Secret>',redirect_uri='http://localhost/')
if token:
print("Cool we authenticated")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment