【发布时间】:2016-05-07 12:25:33
【问题描述】:
如何阅读有关使用 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)
我试过这个。但它停留在发送请求。谁能帮我?感谢您的回答。
【问题讨论】:
-
谢谢,看起来不错!
标签: python audio-streaming shoutcast urllib3