Extract ID3 tags of a MP3 URL with partial download using python
I need to extract ID3 tags and meta-data of remote mp3 files. I wrote few lines that could get ID3 tags of local file: from mutagen.mp3 import MP3 import urllib2 audio = MP3("Whistle.mp3") songtitle = audio["TIT2"] artist = audio["TPE1"] print "Title: " + str(songtitle) print "Artist: "+str(artist) I need to achieve this for url links for mp3 files. I tried to get partial download of files using urllib2. import urllib2 from mutagen.mp3 import MP3 req = urllib2.Request('http://www.1songday.com/wp-content/uploads/2013/08/Lorde-Royals.mp3') req.headers['Range'] = 'bytes=%s-%s' % (0, 100) response