mirror of
https://github.com/wbt5/real-url.git
synced 2025-08-13 23:31:38 +08:00
Compare commits
No commits in common. "0ab2f21c744975e4967e7878ce532e15b2ec25a0" and "7b40185347b849d0a920c838eec2d2da09d90a11" have entirely different histories.
0ab2f21c74
...
7b40185347
@ -10,7 +10,7 @@
|
||||
|
||||
目前已实现:
|
||||
|
||||
**58** 个直播平台的直播源获取:斗鱼直播、虎牙直播、哔哩哔哩直播、战旗直播、网易 CC 直播、火猫直播、企鹅电竞、YY 直播、一直播、快手直播、花椒直播、映客直播、西瓜直播、触手直播(已倒闭)、NOW 直播、抖音直播,爱奇艺直播、酷狗直播、龙珠直播、PPS 奇秀直播、六间房、17 直播、来疯直播、优酷轮播台、网易 LOOK 直播、千帆直播、陌陌直播、小米直播、迅雷直播、京东直播、企鹅体育、人人直播、棉花糖直播、九秀直播、羚萌直播、95秀、新浪疯播、红人直播、艾米直播、KK直播、酷我聚星、乐嗨直播、秀色直播、星光直播、我秀直播、热猫直播、艺气山直播、AcFun 直播、猫耳FM、畅秀阁、Twitch、TikTok、央视频、PP体育、zhibotv、腾讯体育直播、爱奇艺体育直播、liveU、bigolive。
|
||||
**56** 个直播平台的直播源获取:斗鱼直播、虎牙直播、哔哩哔哩直播、战旗直播、网易 CC 直播、火猫直播、企鹅电竞、YY 直播、一直播、快手直播、花椒直播、映客直播、西瓜直播、触手直播(已倒闭)、NOW 直播、抖音直播,爱奇艺直播、酷狗直播、龙珠直播、PPS 奇秀直播、六间房、17 直播、来疯直播、优酷轮播台、网易 LOOK 直播、千帆直播、陌陌直播、小米直播、迅雷直播、京东直播、企鹅体育、人人直播、棉花糖直播、九秀直播、羚萌直播、95秀、新浪疯播、红人直播、艾米直播、KK直播、酷我聚星、乐嗨直播、秀色直播、星光直播、我秀直播、热猫直播、艺气山直播、AcFun 直播、猫耳FM、畅秀阁、Twitch、TikTok、央视频、PP体育、zhibotv、腾讯体育直播、爱奇艺体育直播。
|
||||
|
||||
**18** 个直播平台的弹幕获取:斗鱼直播、虎牙直播、哔哩哔哩直播、快手直播、火猫直播、企鹅电竞、花椒直播、映客直播、网易 CC 直播、酷狗直播、龙珠直播、PPS 奇秀、搜狐千帆、战旗直播、来疯直播、网易 LOOK 直播、AcFun 直播、艺气山直播。
|
||||
|
||||
@ -26,8 +26,6 @@
|
||||
有直播平台失效或新增其他平台解析的,可发 [issue](https://github.com/wbt5/real-url/issues/new)。
|
||||
|
||||
## 更新
|
||||
2021.8.15::sparkles:新增 liveU、bigolive。
|
||||
|
||||
2021.7.4::art:更新哔哩哔哩直播源;:bug:修复Acfun直播弹幕;:bug:修复企鹅电竞弹幕。
|
||||
|
||||
2021.6.20::sparkles:新增爱奇艺体育直播。
|
||||
|
35
bigo.py
35
bigo.py
@ -1,35 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time: 2021/8/15 16:00
|
||||
# @Project: my-spiders
|
||||
# @Author: wbt5
|
||||
# @Blog: https://wbt5.com
|
||||
|
||||
import requests
|
||||
|
||||
|
||||
class bigo:
|
||||
|
||||
def __init__(self, rid):
|
||||
self.rid = rid
|
||||
|
||||
def get_real_url(self):
|
||||
with requests.Session() as s:
|
||||
url = f'https://ta.bigo.tv/official_website/studio/getInternalStudioInfo'
|
||||
res = s.post(url, data={'siteId': self.rid}).json()
|
||||
hls_src = res['data']['hls_src']
|
||||
play_url = hls_src if hls_src else '不存在或未开播'
|
||||
return play_url
|
||||
|
||||
|
||||
def get_real_url(rid):
|
||||
try:
|
||||
url = bigo(rid)
|
||||
return url.get_real_url()
|
||||
except Exception as e:
|
||||
print('Exception:', e)
|
||||
return False
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
r = input('输入bigo直播房间号:\n')
|
||||
print(get_real_url(r))
|
34
liveu.py
34
liveu.py
@ -1,34 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time: 2021/8/15 14:09
|
||||
# @Project: my-spiders
|
||||
# @Author: wbt5
|
||||
# @Blog: https://wbt5.com
|
||||
|
||||
import requests
|
||||
|
||||
|
||||
class liveU:
|
||||
|
||||
def __init__(self, rid):
|
||||
self.rid = rid
|
||||
|
||||
def get_real_url(self):
|
||||
with requests.Session() as s:
|
||||
url = f'https://mobile.liveu.me/appgw/v2/watchstartweb?sessionid=&vid={self.rid}'
|
||||
res = s.get(url).json()
|
||||
play_url = res['retinfo']['play_url'] if res['retval'] == 'ok' else '不存在或未开播'
|
||||
return play_url
|
||||
|
||||
|
||||
def get_real_url(rid):
|
||||
try:
|
||||
url = liveU(rid)
|
||||
return url.get_real_url()
|
||||
except Exception as e:
|
||||
print('Exception:', e)
|
||||
return False
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
r = input('输入liveU直播房间号:\n')
|
||||
print(get_real_url(r))
|
Loading…
x
Reference in New Issue
Block a user