no inputstream?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu May 15 09:37:05 EDT 2008


On Thu, 15 May 2008 06:08:35 -0700, max wrote:

> i currently have locations of the mp3s in question as strings, which
> works for parsing local files, but gives me a "No such file or
> directory" error when it tries to process URLs.  it seems terribly
> inefficient to download each mp3 just to get at that small tag data,
> and i assume there's a way to do this with file() or open() or
> something, i just can't get it to work.

You can use `urllib2.urlopen()` to open URLs as files.  But if you deal
with ID3 V1 tags you'll have to download the file anyway because those are
in the last 128 bytes of an MP3 file.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list