2
如何使用urllib3读取关于播放歌曲的信息?我应该使用哪些标题?Python 3 - Urllib3读取互联网广播元数据
import urllib3
http = urllib3.PoolManager()
response = http.request("GET", "http://pool.cdn.lagardere.cz/fm-evropa2-128", headers={
'User-Agent': 'User-Agent: VLC/2.0.5 LibVLC/2.0.5',
'Icy-MetaData': '1',
'Range': 'bytes=0-',
})
print(response.data)
我试过了。但它发送请求。谁能帮我?感谢您的回答。
也许这有助于http://docs.python-requests.org/en/latest/user/advanced/ –
感谢它看起来很好! –