我使用eyed3已经有一段时间了,我一直在使用它以这种方式提取mp3文件的类型
import eyed3
audiofile = eyed3.load(path)
print audiofile.tag.genre.name现在我有一个像这样的网址,www.example.com/abc.mp3。
这不起作用,给了我
IOError: file not found: www.example.com/abc.mp3
我的问题是,eyed3.load()不支持远程url吗?对于这个库或任何其他建议的库,有什么解决方法吗?
提前谢谢。
发布于 2013-01-11 19:29:23
首先检查是否在其前面添加了http://,如果可以,否则,
据我所知,您需要首先从服务器检索该文件,然后再使用该文件。
import urllib
filename, headers = urllib.urlretrieve('http://example.com/abc.mp3')
eyed3.load(filename)https://stackoverflow.com/questions/14277150
复制相似问题