title: Spotify Verificaition - Catch verification code of the redicted url via script
body: <p>Heyo,</p>
  <p><strong>From the start:</strong></p>
  <p>I am pretty new to the python universe. My main goal is to program a basic voting system for my own housepartys via WhatsApp messages. (Definitly not easy, but I got time.)</p>
  <p>Right now I am trying to get some basic spotiypy functions running to get used to the spotipy api.</p>
  <p><strong>My problem:</strong></p>
  <p>I got to the point where I try to connect the script with my Spotify device to add specific tracks to my playqueue. My question is connected to the following script:</p>
  <pre><code>def addQueue(spotify, object):
  try:
      spotify.add_to_queue(uri=object)
  except:
      print(&quot;Adding object to queue was canceled.&quot;)
  </code></pre>
  <p>After the execution I get redicted to my browser and the set &quot;SPOTIPY_REDIRECT_URI&quot; plus a code I understand as a verfication code of my process. At the same time the console asks for this url + code and wants this input by the user. I have to copy paste it manually right now.</p>
  <p><a href="https://i.stack.imgur.com/WVhal.png" rel="nofollow noreferrer">Consoleoutput: Left - Spotipy request | Right - Input (duckduck...)</a></p>
  <p>Since I want to automate it I need to implement a reading script of my browser or maybe catch it before even starting a tab in my browser.</p>
  <p><strong>My question</strong></p>
  <p>Is there any python friendly way to read / catch this url? Beside that what kind of libarys would you suggest for these actions. I don't want to ask for a script, but since I am learning maybe a good example or tutorial for this kind of implementation. I am open for any suggestions and are willing to look into new languages if necessary (my programming understanding is basic).</p>
  <p>Thank you for reading and stay healthy. :)</p>
  <p>Greets
  MrSchiller</p>