1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-06-17 08:25:25 +08:00

Compare commits

...

5 Commits

Author SHA1 Message Date
wbt5
6126cc19c9 update 2021-05-01 10:02:21 +08:00
乌帮图
688c468e58
Merge pull request #157 from Axun/patch-1
Update huya.py
2021-05-01 09:11:04 +08:00
乌帮图
bf3f14b575
Merge pull request #148 from wbt5/dependabot/pip/aiohttp-3.7.4
Bump aiohttp from 3.6.2 to 3.7.4
2021-05-01 09:09:46 +08:00
Crab
fcaa6eca63
Update huya.py
b64decode
2021-04-20 18:49:29 +08:00
dependabot[bot]
2da4184495
Bump aiohttp from 3.6.2 to 3.7.4
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.6.2 to 3.7.4.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.6.2...v3.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-26 03:05:19 +00:00
3 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,10 @@
## 说明
没想到还有这么多朋友发 issue 和邮件咨询问题,感谢大家的支持🎈!因为有时很忙,回复和提交代码的周期会有点长,抱歉哦😋
这个仓库存放的是:获取一些直播平台真实流媒体地址(直播源)和弹幕的 Python 代码实现。获取的地址经测试,均可在 PotPlayer、VLC、DPlayer(flv.js + hls.js)等播放器中播放。
> 🤘👌🤙🙏🐉👉 :如果该项目能帮助到您,欢迎 star 和 pr或在您的项目中标注 Real-Url 为参考来源。

View File

@ -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 = {

View File

@ -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