mirror of
https://github.com/wbt5/real-url.git
synced 2025-06-17 08:25:25 +08:00
Compare commits
5 Commits
c1119deda9
...
6126cc19c9
Author | SHA1 | Date | |
---|---|---|---|
|
6126cc19c9 | ||
|
688c468e58 | ||
|
bf3f14b575 | ||
|
fcaa6eca63 | ||
|
2da4184495 |
@ -2,6 +2,10 @@
|
||||
|
||||
## 说明
|
||||
|
||||
没想到还有这么多朋友发 issue 和邮件咨询问题,感谢大家的支持🎈!因为有时很忙,回复和提交代码的周期会有点长,抱歉哦😋
|
||||
|
||||
|
||||
|
||||
这个仓库存放的是:获取一些直播平台真实流媒体地址(直播源)和弹幕的 Python 代码实现。获取的地址经测试,均可在 PotPlayer、VLC、DPlayer(flv.js + hls.js)等播放器中播放。
|
||||
|
||||
> 🤘👌🤙🙏🐉👉 :如果该项目能帮助到您,欢迎 star 和 pr;或在您的项目中标注 Real-Url 为参考来源。
|
||||
|
1
huya.py
1
huya.py
@ -24,6 +24,7 @@ class HuYa:
|
||||
}
|
||||
response = requests.get(url=room_url, headers=header).text
|
||||
livelineurl = re.findall(r'liveLineUrl = "([\s\S]*?)";', response)[0]
|
||||
livelineurl = base64.b64decode(livelineurl).decode('utf-8')
|
||||
if livelineurl:
|
||||
if 'replay' in livelineurl:
|
||||
real_url = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
aiohttp==3.6.2
|
||||
aiohttp==3.7.4
|
||||
async-timeout==3.0.1
|
||||
attrs==20.2.0
|
||||
certifi==2020.6.20
|
||||
|
Loading…
x
Reference in New Issue
Block a user