Created
          August 8, 2019 02:24 
        
      - 
      
 - 
        
Save sergiolucero/f4a5629b512bfe9c66c777f3000bf821 to your computer and use it in GitHub Desktop.  
    my spotify playlists
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import spotipy | |
| import spotipy.util as util | |
| from creds import CLIENT_ID, CLIENT_SECRET | |
| token = util.prompt_for_user_token(username = 'sergiolucero', scope='', | |
| client_id=CLIENT_ID, | |
| client_secret=CLIENT_SECRET, | |
| redirect_uri='http://quant.cl/what' | |
| ) | |
| sp = spotipy.Spotify(auth=token) | |
| sp.trace = False | |
| results = sp.current_user_playlists(limit=50) | |
| for i, item in enumerate(results['items'][:5]): | |
| print("%d %s" %(i, item['name'])) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Uh oh!
There was an error while loading. Please reload this page.