title: Fetching the title and artist of online MP3 files in Python 2.7
body: <p>I'm writing a script in Python 2.7 that needs to fetch the title, artist and preferably length (but that's less important), of linked MP3 files. I'm not really sure how to go about doing this, I've tried a few approaches with urllib and mutagen, but none have worked. Well, one worked, but for some reason stopped working. urllib started saying that there were too many values to unpack, I'm not sure why. Here is what used to work:</p>
  
  <pre><code>from urllib import urlopen
  from mutagen.mp3 import MP3
  
  def getInfo(url):
      filename, headers = urlopen(url)
      audio = MP3(filename)
  </code></pre>
  
  <p>That worked fine, and I'm not sure what changed, but I haven't found anything else that worked since. I may have been a bit more vague than I realize here, so please let me know if you need more information. Thank you!</p>