title: Spotipy not verifying via Oauth?
body: <p>I'm attempting to write a Python script to create a Spotify playlist via the <a href="http://spotipy.readthedocs.org" rel="nofollow">Spotipy</a> application. I've successfully created an application in Spotify's Dev center and input the necessary variables into Spotipy's example (see below).  However, the script is not authorizing properly.  I've tried with and without a server running, but to no avail.  There are similar questions on Stack but they do not offer complete solutions.  Any suggestions would be very helpful. </p>
  
  <p>Here is the message I am receiving via command prompt:</p>
  
  <blockquote>
    <p>User authentication requires interaction with your
      web browser. Once you enter your credentials and
      give authorization, you will be redirected to
      a url.  Paste that url you were directed to to
      complete the authorization.</p>
    
    <p>Please navigate here:
    <a href="https://accounts.spotify.com/authorize?scope=user-library-read&amp;redirect_uri=None&amp;response_type=code&amp;client_id=xxxxx" rel="nofollow">https://accounts.spotify.com/authorize?scope=user-library-read&amp;redirect_uri=None&amp;response_type=code&amp;client_id=xxxxx</a></p>
    
    <p>Enter the URL you were redirected to:</p>
  </blockquote>
  
  <p>And here is the script that's running. It's nearly identical to that example provided by Spotipy, with a change made for setting os variables for my Windows machine. </p>
  
  <pre><code>import pprint
  import sys
  import os
  import subprocess
  import spotipy
  import spotipy.util as util
  import requests
  
  clientId = 'client id here'
  clientSecret = 'client secret here'
  clientRedirect = 'http://localhost:8888/callback'
  
  username = 'username here'
  scope='user-library-read'
  
  os.environ["SPOTIPY_CLIENT_ID"] = clientId
  os.environ["SPOTIPY_CLIENT_SECRET"] = clientSecret
  os.environ["POTIPY_REDIRECT_URI"] = clientRedirect
  
  token = util.prompt_for_user_token(username, scope)
  
  if token:
      sp = spotipy.Spotify(auth=token)
      results = sp.current_user_saved_tracks()
      for item in results['items']:
          track = item['track']
          print track['name'] + ' - ' + track['artists'][0]['name']
  else:
      print "Can't get token for", username
  </code></pre>