index
int64
0
50.7k
project_path
stringclasses
279 values
completion_path
stringlengths
57
199
signature_postion
stringlengths
3
11
class_position
stringlengths
3
11
function_name
stringlengths
1
62
class_name
stringlengths
0
55
body_position
stringlengths
3
11
body_position_with_comments
stringlengths
3
11
masked_class
stringlengths
14
8.32k
masked_class_with_comment
stringlengths
14
8.32k
func_body
stringlengths
9
6.72k
func_body_with_comment
stringlengths
9
6.72k
len_func_body
int64
1
643
len_input
int64
10
2.02k
len_output
int64
4
1.9k
total
int64
20
2.05k
file_code
stringlengths
14
442k
file_code_with_comment
stringlengths
14
442k
26,993
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/2cq.py
11,12
6,26
get_real_url
MHT
12,26
12,26
class MHT: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class MHT: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
with requests.Session() as s: res = s.get(f'https://www.2cq.com/proxy/room/room/info?roomId={self.rid}&appId=1004') res = res.json() if res['status'] == 1: result = res['result'] if result['liveState'] == 1: real_url = result['pullUrl'] ...
with requests.Session() as s: res = s.get(f'https://www.2cq.com/proxy/room/room/info?roomId={self.rid}&appId=1004') res = res.json() if res['status'] == 1: result = res['result'] if result['liveState'] == 1: real_url = result['pullUrl'] ...
32
45
152
197
# 棉花糖直播:https://www.2cq.com/rank import requests class MHT: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: mht = MHT(rid) return mht.get_real_url() except Exception as e: print('Exception:', e) return...
# 棉花糖直播:https://www.2cq.com/rank import requests class MHT: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: mht = MHT(rid) return mht.get_real_url() except Exception as e: print('Exception:', e) return...
26,994
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/51lm.py
48,49
1,60
get_real_url
49,57
49,57
# 羚萌直播:https://live.51lm.tv/programs/Hot from urllib.parse import urlencode import requests import time import hashlib class LM: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://www.51lm.tv/live/room/info/basic' def get_real_url(self): roominfo = {'programId': self.r...
# 羚萌直播:https://live.51lm.tv/programs/Hot from urllib.parse import urlencode import requests import time import hashlib class LM: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://www.51lm.tv/live/room/info/basic' def get_real_url(self): roominfo = {'programId': self.r...
try: lm = LM(rid) return lm.get_real_url() except Exception as e: print('Exception:', e) return False
try: lm = LM(rid) return lm.get_real_url() except Exception as e: print('Exception:', e) return False
14
566
56
622
# 羚萌直播:https://live.51lm.tv/programs/Hot from urllib.parse import urlencode import requests import time import hashlib class LM: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://www.51lm.tv/live/room/info/basic' def get_real_url(self): roominfo = {'programId': self.r...
# 羚萌直播:https://live.51lm.tv/programs/Hot from urllib.parse import urlencode import requests import time import hashlib class LM: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://www.51lm.tv/live/room/info/basic' def get_real_url(self): roominfo = {'programId': self.r...
26,995
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/51lm.py
15,16
9,48
get_real_url
LM
16,48
16,48
class LM: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://www.51lm.tv/live/room/info/basic' def get_real_url(self): FILL_FUNC_BODY
class LM: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://www.51lm.tv/live/room/info/basic' def get_real_url(self): FILL_FUNC_BODY
roominfo = {'programId': self.rid} def g(d): return hashlib.md5(f'{d}#{urlencode(roominfo)}#Ogvbm2ZiKE'.encode('utf-8')).hexdigest() lminfo = { 'h': int(time.time()) * 1000, 'i': -246397986, 'o': 'iphone', 's': 'G_c17a64eff3f144a1a48d...
roominfo = {'programId': self.rid} def g(d): return hashlib.md5(f'{d}#{urlencode(roominfo)}#Ogvbm2ZiKE'.encode('utf-8')).hexdigest() lminfo = { 'h': int(time.time()) * 1000, 'i': -246397986, 'o': 'iphone', 's': 'G_c17a64eff3f144a1a48d...
78
71
430
501
# 羚萌直播:https://live.51lm.tv/programs/Hot from urllib.parse import urlencode import requests import time import hashlib class LM: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://www.51lm.tv/live/room/info/basic' def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): ...
# 羚萌直播:https://live.51lm.tv/programs/Hot from urllib.parse import urlencode import requests import time import hashlib class LM: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://www.51lm.tv/live/room/info/basic' def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): ...
26,996
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/95xiu.py
27,28
1,39
get_real_url
28,36
28,36
# 95秀:http://www.95.cn/ import requests import re class JWXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://www.95.cn/{self.rid}.html').text try: uid = re.search(r'"uid":(\d+),', res).grou...
# 95秀:http://www.95.cn/ import requests import re class JWXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://www.95.cn/{self.rid}.html').text try: uid = re.search(r'"uid":(\d+),', res).grou...
try: jwx = JWXiu(rid) return jwx.get_real_url() except Exception as e: print('Exception:', e) return False
try: jwx = JWXiu(rid) return jwx.get_real_url() except Exception as e: print('Exception:', e) return False
14
285
59
344
# 95秀:http://www.95.cn/ import requests import re class JWXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://www.95.cn/{self.rid}.html').text try: uid = re.search(r'"uid":(\d+),', res).grou...
# 95秀:http://www.95.cn/ import requests import re class JWXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://www.95.cn/{self.rid}.html').text try: uid = re.search(r'"uid":(\d+),', res).grou...
26,997
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/95xiu.py
12,13
7,27
get_real_url
JWXiu
13,27
13,27
class JWXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class JWXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
with requests.Session() as s: res = s.get(f'https://www.95.cn/{self.rid}.html').text try: uid = re.search(r'"uid":(\d+),', res).group(1) status = re.search(r'"is_offline":"(\d)"', res).group(1) except AttributeError: raise Exception('没有找到直播间') ...
with requests.Session() as s: res = s.get(f'https://www.95.cn/{self.rid}.html').text try: uid = re.search(r'"uid":(\d+),', res).group(1) status = re.search(r'"is_offline":"(\d)"', res).group(1) except AttributeError: raise Exception('没有找到直播间') ...
32
47
176
223
# 95秀:http://www.95.cn/ import requests import re class JWXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: jwx = JWXiu(rid) return jwx.get_real_url() except Exception as e: print('Exception:', e) r...
# 95秀:http://www.95.cn/ import requests import re class JWXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: jwx = JWXiu(rid) return jwx.get_real_url() except Exception as e: print('Exception:', e) r...
26,998
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/9xiu.py
30,31
1,42
get_real_url
31,39
31,39
# 九秀直播:https://www.9xiu.com/other/classify?tag=all&index=all import requests class JXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: url = f'https://h5.9xiu.com/room/live/enterRoom?rid={self.rid}' headers = { ...
# 九秀直播:https://www.9xiu.com/other/classify?tag=all&index=all import requests class JXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: url = f'https://h5.9xiu.com/room/live/enterRoom?rid={self.rid}' headers = { ...
try: jx = JXiu(rid) return jx.get_real_url() except Exception as e: print('Exception:', e) return False
try: jx = JXiu(rid) return jx.get_real_url() except Exception as e: print('Exception:', e) return False
14
359
58
417
# 九秀直播:https://www.9xiu.com/other/classify?tag=all&index=all import requests class JXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: url = f'https://h5.9xiu.com/room/live/enterRoom?rid={self.rid}' headers = { ...
# 九秀直播:https://www.9xiu.com/other/classify?tag=all&index=all import requests class JXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: url = f'https://h5.9xiu.com/room/live/enterRoom?rid={self.rid}' headers = { ...
26,999
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/9xiu.py
11,12
6,30
get_real_url
JXiu
12,30
12,30
class JXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class JXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
with requests.Session() as s: url = f'https://h5.9xiu.com/room/live/enterRoom?rid={self.rid}' headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) ' 'AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15...
with requests.Session() as s: url = f'https://h5.9xiu.com/room/live/enterRoom?rid={self.rid}' headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) ' 'AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15...
59
46
245
291
# 九秀直播:https://www.9xiu.com/other/classify?tag=all&index=all import requests class JXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: jx = JXiu(rid) return jx.get_real_url() except Exception as e: print('Ex...
# 九秀直播:https://www.9xiu.com/other/classify?tag=all&index=all import requests class JXiu: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: jx = JXiu(rid) return jx.get_real_url() except Exception as e: print('Ex...
27,000
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/acfun.py
49,50
1,61
get_real_url
50,58
50,58
# AcFun直播:https://live.acfun.cn/ # 默认最高画质 import requests import json class AcFun: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'content-type': 'application/x-www-form-urlencoded', 'cookie': '_did=H5_', 'referer': 'https://m...
# AcFun直播:https://live.acfun.cn/ # 默认最高画质 import requests import json class AcFun: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'content-type': 'application/x-www-form-urlencoded', 'cookie': '_did=H5_', 'referer': 'https://m...
try: acfun = AcFun(rid) return acfun.get_real_url() except Exception as e: print('Exception:', e) return False
try: acfun = AcFun(rid) return acfun.get_real_url() except Exception as e: print('Exception:', e) return False
14
559
57
616
# AcFun直播:https://live.acfun.cn/ # 默认最高画质 import requests import json class AcFun: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'content-type': 'application/x-www-form-urlencoded', 'cookie': '_did=H5_', 'referer': 'https://m...
# AcFun直播:https://live.acfun.cn/ # 默认最高画质 import requests import json class AcFun: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'content-type': 'application/x-www-form-urlencoded', 'cookie': '_did=H5_', 'referer': 'https://m...
27,001
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/acfun.py
13,14
8,49
get_real_url
AcFun
14,49
14,49
class AcFun: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class AcFun: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
headers = { 'content-type': 'application/x-www-form-urlencoded', 'cookie': '_did=H5_', 'referer': 'https://m.acfun.cn/' } url = 'https://id.app.acfun.cn/rest/app/visitor/login' data = 'sid=acfun.api.visitor' with requests.Session() as s: ...
headers = { 'content-type': 'application/x-www-form-urlencoded', 'cookie': '_did=H5_', 'referer': 'https://m.acfun.cn/' } url = 'https://id.app.acfun.cn/rest/app/visitor/login' data = 'sid=acfun.api.visitor' with requests.Session() as s: ...
86
45
465
510
# AcFun直播:https://live.acfun.cn/ # 默认最高画质 import requests import json class AcFun: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: acfun = AcFun(rid) return acfun.get_real_url() except Exception as e: print('E...
# AcFun直播:https://live.acfun.cn/ # 默认最高画质 import requests import json class AcFun: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: acfun = AcFun(rid) return acfun.get_real_url() except Exception as e: print('E...
27,002
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/bigo.py
25,26
1,37
get_real_url
26,34
26,34
# -*- coding: utf-8 -*- # @Time: 2021/8/15 16:00 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com # BIGO LIVE:https://www.bigo.tv/cn/ import requests class Bigo: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: url = f...
# -*- coding: utf-8 -*- # @Time: 2021/8/15 16:00 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com # BIGO LIVE:https://www.bigo.tv/cn/ import requests class Bigo: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: url = f...
try: url = Bigo(rid) return url.get_real_url() except Exception as e: print('Exception:', e) return False
try: url = Bigo(rid) return url.get_real_url() except Exception as e: print('Exception:', e) return False
14
294
55
349
# -*- coding: utf-8 -*- # @Time: 2021/8/15 16:00 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com # BIGO LIVE:https://www.bigo.tv/cn/ import requests class Bigo: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: url = f...
# -*- coding: utf-8 -*- # @Time: 2021/8/15 16:00 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com # BIGO LIVE:https://www.bigo.tv/cn/ import requests class Bigo: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: url = f...
27,003
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/bigo.py
16,17
11,25
get_real_url
Bigo
17,25
17,25
class Bigo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class Bigo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
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
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
24
45
118
163
# -*- coding: utf-8 -*- # @Time: 2021/8/15 16:00 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com # BIGO LIVE:https://www.bigo.tv/cn/ import requests class Bigo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: url...
# -*- coding: utf-8 -*- # @Time: 2021/8/15 16:00 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com # BIGO LIVE:https://www.bigo.tv/cn/ import requests class Bigo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: url...
27,004
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/bilibili.py
75,76
1,87
get_real_url
76,84
76,84
# 获取哔哩哔哩直播的真实流媒体地址,默认获取直播间提供的最高画质 # qn=150高清 # qn=250超清 # qn=400蓝光 # qn=10000原画 import requests class BiliBili: def __init__(self, rid): """ 有些地址无法在PotPlayer播放,建议换个播放器试试 Args: rid: """ rid = rid self.header = { 'User-Agent': 'Mozilla/5.0 (iP...
# 获取哔哩哔哩直播的真实流媒体地址,默认获取直播间提供的最高画质 # qn=150高清 # qn=250超清 # qn=400蓝光 # qn=10000原画 import requests class BiliBili: def __init__(self, rid): """ 有些地址无法在PotPlayer播放,建议换个播放器试试 Args: rid: """ rid = rid self.header = { 'User-Agent': 'Mozilla/5.0 (iP...
try: bilibili = BiliBili(rid) return bilibili.get_real_url() except Exception as e: print('Exception:', e) return False
try: bilibili = BiliBili(rid) return bilibili.get_real_url() except Exception as e: print('Exception:', e) return False
14
1,010
61
1,071
# 获取哔哩哔哩直播的真实流媒体地址,默认获取直播间提供的最高画质 # qn=150高清 # qn=250超清 # qn=400蓝光 # qn=10000原画 import requests class BiliBili: def __init__(self, rid): """ 有些地址无法在PotPlayer播放,建议换个播放器试试 Args: rid: """ rid = rid self.header = { 'User-Agent': 'Mozilla/5.0 (iP...
# 获取哔哩哔哩直播的真实流媒体地址,默认获取直播间提供的最高画质 # qn=150高清 # qn=250超清 # qn=400蓝光 # qn=10000原画 import requests class BiliBili: def __init__(self, rid): """ 有些地址无法在PotPlayer播放,建议换个播放器试试 Args: rid: """ rid = rid self.header = { 'User-Agent': 'Mozilla/5.0 (iP...
27,005
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/bilibili.py
36,37
9,75
get_real_url
BiliBili
37,75
37,75
class BiliBili: def __init__(self, rid): """ 有些地址无法在PotPlayer播放,建议换个播放器试试 Args: rid: """ rid = rid self.header = { 'User-Agent': 'Mozilla/5.0 (iPod; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'li...
class BiliBili: def __init__(self, rid): """ 有些地址无法在PotPlayer播放,建议换个播放器试试 Args: rid: """ rid = rid self.header = { 'User-Agent': 'Mozilla/5.0 (iPod; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'li...
url = 'https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo' param = { 'room_id': self.real_room_id, 'protocol': '0,1', 'format': '0,1,2', 'codec': '0,1', 'qn': current_qn, 'platform': 'h5', 'ptype': 8, ...
url = 'https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo' param = { 'room_id': self.real_room_id, 'protocol': '0,1', 'format': '0,1,2', 'codec': '0,1', 'qn': current_qn, 'platform': 'h5', 'ptype': 8, ...
108
387
533
920
# 获取哔哩哔哩直播的真实流媒体地址,默认获取直播间提供的最高画质 # qn=150高清 # qn=250超清 # qn=400蓝光 # qn=10000原画 import requests class BiliBili: def __init__(self, rid): """ 有些地址无法在PotPlayer播放,建议换个播放器试试 Args: rid: """ rid = rid self.header = { 'User-Agent': 'Mozilla/5.0 (iP...
# 获取哔哩哔哩直播的真实流媒体地址,默认获取直播间提供的最高画质 # qn=150高清 # qn=250超清 # qn=400蓝光 # qn=10000原画 import requests class BiliBili: def __init__(self, rid): """ 有些地址无法在PotPlayer播放,建议换个播放器试试 Args: rid: """ rid = rid self.header = { 'User-Agent': 'Mozilla/5.0 (iP...
27,006
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/cc.py
28,29
1,40
get_real_url
29,37
29,37
# 获取网易CC的真实流媒体地址。 # 默认为最高画质 import requests class CC: def __init__(self, rid): self.rid = rid def get_real_url(self): room_url = f'https://api.cc.163.com/v1/activitylives/anchor/lives?anchor_ccid={self.rid}' response = requests.get(url=room_url).json() data = response.get('d...
# 获取网易CC的真实流媒体地址。 # 默认为最高画质 import requests class CC: def __init__(self, rid): self.rid = rid def get_real_url(self): room_url = f'https://api.cc.163.com/v1/activitylives/anchor/lives?anchor_ccid={self.rid}' response = requests.get(url=room_url).json() data = response.get('d...
try: cc = CC(rid) return cc.get_real_url() except Exception as e: print('Exception:', e) return False
try: cc = CC(rid) return cc.get_real_url() except Exception as e: print('Exception:', e) return False
14
323
54
377
# 获取网易CC的真实流媒体地址。 # 默认为最高画质 import requests class CC: def __init__(self, rid): self.rid = rid def get_real_url(self): room_url = f'https://api.cc.163.com/v1/activitylives/anchor/lives?anchor_ccid={self.rid}' response = requests.get(url=room_url).json() data = response.get('d...
# 获取网易CC的真实流媒体地址。 # 默认为最高画质 import requests class CC: def __init__(self, rid): self.rid = rid def get_real_url(self): room_url = f'https://api.cc.163.com/v1/activitylives/anchor/lives?anchor_ccid={self.rid}' response = requests.get(url=room_url).json() data = response.get('d...
27,007
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/cc.py
12,13
7,28
get_real_url
CC
13,28
13,28
class CC: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class CC: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
room_url = f'https://api.cc.163.com/v1/activitylives/anchor/lives?anchor_ccid={self.rid}' response = requests.get(url=room_url).json() data = response.get('data', 0) if data: channel_id = data.get(f'{self.rid}').get('channel_id', 0) if channel_id: ...
room_url = f'https://api.cc.163.com/v1/activitylives/anchor/lives?anchor_ccid={self.rid}' response = requests.get(url=room_url).json() data = response.get('data', 0) if data: channel_id = data.get(f'{self.rid}').get('channel_id', 0) if channel_id: ...
32
44
215
259
# 获取网易CC的真实流媒体地址。 # 默认为最高画质 import requests class CC: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: cc = CC(rid) return cc.get_real_url() except Exception as e: print('Exception:', e) return False ...
# 获取网易CC的真实流媒体地址。 # 默认为最高画质 import requests class CC: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: cc = CC(rid) return cc.get_real_url() except Exception as e: print('Exception:', e) return False ...
27,008
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/changyou.py
37,38
1,49
get_real_url
38,46
38,46
# -*- coding: utf-8 -*- # @Time: 2021/5/1 17:40 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class ChangYou: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone ...
# -*- coding: utf-8 -*- # @Time: 2021/5/1 17:40 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class ChangYou: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone ...
try: cxg = ChangYou(rid) return cxg.get_real_url() except Exception as e: print('Exception:', e) return False
try: cxg = ChangYou(rid) return cxg.get_real_url() except Exception as e: print('Exception:', e) return False
14
425
60
485
# -*- coding: utf-8 -*- # @Time: 2021/5/1 17:40 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class ChangYou: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone ...
# -*- coding: utf-8 -*- # @Time: 2021/5/1 17:40 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class ChangYou: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone ...
27,009
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/changyou.py
17,18
12,37
get_real_url
ChangYou
18,37
18,37
class ChangYou: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class ChangYou: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 ' } url = 'http://cxg.changyou.com/landingpage/getstreamname.action?roomid={}'.format(se...
headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 ' } url = 'http://cxg.changyou.com/landingpage/getstreamname.action?roomid={}'.format(se...
58
46
274
320
# -*- coding: utf-8 -*- # @Time: 2021/5/1 17:40 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class ChangYou: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: cxg = ChangYou(rid) ...
# -*- coding: utf-8 -*- # @Time: 2021/5/1 17:40 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class ChangYou: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: cxg = ChangYou(rid) ...
27,010
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/douyu.py
33,35
7,49
decode_msg
Douyu
35,49
35,49
class Douyu: wss_url = 'wss://danmuproxy.douyu.com:8503/' heartbeat = b'\x14\x00\x00\x00\x14\x00\x00\x00\xb1\x02\x00\x00\x74\x79\x70\x65\x40\x3d\x6d\x72\x6b\x6c' \ b'\x2f\x00 ' heartbeatInterval = 60 @staticmethod async def get_ws_info(url): room_id = url.split('/')[-1] ...
class Douyu: wss_url = 'wss://danmuproxy.douyu.com:8503/' heartbeat = b'\x14\x00\x00\x00\x14\x00\x00\x00\xb1\x02\x00\x00\x74\x79\x70\x65\x40\x3d\x6d\x72\x6b\x6c' \ b'\x2f\x00 ' heartbeatInterval = 60 @staticmethod async def get_ws_info(url): room_id = url.split('/')[-1] ...
msgs = [] for msg in re.findall(b'(type@=.*?)\x00', data): try: msg = msg.replace(b'@=', b'":"').replace(b'/', b'","') msg = msg.replace(b'@A', b'@').replace(b'@S', b'/') msg = json.loads((b'{"' + msg[:-2] + b'}').decode('utf8', 'ignore')) ...
msgs = [] for msg in re.findall(b'(type@=.*?)\x00', data): try: msg = msg.replace(b'@=', b'":"').replace(b'/', b'","') msg = msg.replace(b'@A', b'@').replace(b'@S', b'/') msg = json.loads((b'{"' + msg[:-2] + b'}').decode('utf8', 'ignore')) ...
52
525
233
758
import re import json import aiohttp from struct import pack class Douyu: wss_url = 'wss://danmuproxy.douyu.com:8503/' heartbeat = b'\x14\x00\x00\x00\x14\x00\x00\x00\xb1\x02\x00\x00\x74\x79\x70\x65\x40\x3d\x6d\x72\x6b\x6c' \ b'\x2f\x00 ' heartbeatInterval = 60 @staticmethod async ...
import re import json import aiohttp from struct import pack class Douyu: wss_url = 'wss://danmuproxy.douyu.com:8503/' heartbeat = b'\x14\x00\x00\x00\x14\x00\x00\x00\xb1\x02\x00\x00\x74\x79\x70\x65\x40\x3d\x6d\x72\x6b\x6c' \ b'\x2f\x00 ' heartbeatInterval = 60 @staticmethod async ...
27,011
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/inke.py
10,12
7,43
get_ws_info
Inke
12,22
12,22
class Inke: heartbeat = None @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(data): msgs = [] name = content = '' msg_type = 'other' message = json.loads(data) ms = message['ms'] c = ms[-1].get('c', 0) if c...
class Inke: heartbeat = None @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(data): msgs = [] name = content = '' msg_type = 'other' message = json.loads(data) ms = message['ms'] c = ms[-1].get('c', 0) if c...
uid = re.search(r'uid=(\d+)', url).group(1) roomid = id = re.search(r'&id=(\d+)', url).group(1) t = int(time.time() * 1e3) cr = 'https://chatroom.inke.cn/url?roomid={}&uid={}&id={}&access_from=pc_web&_t={}'.format(roomid, uid, id, t) async with aiohttp.ClientSession() as session:...
uid = re.search(r'uid=(\d+)', url).group(1) roomid = id = re.search(r'&id=(\d+)', url).group(1) t = int(time.time() * 1e3) cr = 'https://chatroom.inke.cn/url?roomid={}&uid={}&id={}&access_from=pc_web&_t={}'.format(roomid, uid, id, t) async with aiohttp.ClientSession() as session:...
41
262
196
458
import aiohttp import re import time import json class Inke: heartbeat = None @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(data): msgs = [] name = content = '' msg_type = 'other' message = json.loads(data) ms = messag...
import aiohttp import re import time import json class Inke: heartbeat = None @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(data): msgs = [] name = content = '' msg_type = 'other' message = json.loads(data) ms = messag...
27,012
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/laifeng.py
10,12
6,54
get_ws_info
LaiFeng
12,30
12,30
class LaiFeng: heartbeat = '2::' heartbeatInterval = 30 @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(message): type_ = message[0] msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'other'} if type_ == '5': ...
class LaiFeng: heartbeat = '2::' heartbeatInterval = 30 @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(message): type_ = message[0] msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'other'} if type_ == '5': ...
rid = url.split('/')[-1] async with aiohttp.ClientSession() as session: async with session.get('http://v.laifeng.com/') as resp: imk = dict(resp.cookies)['imk'].value args = { 'name': 'enter', 'args': [{ 'token': imk.replace('%3...
rid = url.split('/')[-1] async with aiohttp.ClientSession() as session: async with session.get('http://v.laifeng.com/') as resp: imk = dict(resp.cookies)['imk'].value args = { 'name': 'enter', 'args': [{ 'token': imk.replace('%3...
48
343
281
624
import aiohttp import json import time class LaiFeng: heartbeat = '2::' heartbeatInterval = 30 @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(message): type_ = message[0] msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'oth...
import aiohttp import json import time class LaiFeng: heartbeat = '2::' heartbeatInterval = 30 @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(message): type_ = message[0] msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'oth...
27,013
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/look.py
23,25
8,113
get_ws_info
Look
25,84
25,84
class Look: heartbeat = '2::' heartbeatInterval = 30 @staticmethod def aes_(t, key): t = t.encode('utf-8') t = pad(t, AES.block_size) key = key.encode() iv = b'0102030405060708' mode = AES.MODE_CBC c = AES.new(key, mode, iv) res = c.encrypt(t) ...
class Look: heartbeat = '2::' heartbeatInterval = 30 @staticmethod def aes_(t, key): t = t.encode('utf-8') t = pad(t, AES.block_size) key = key.encode() iv = b'0102030405060708' mode = AES.MODE_CBC c = AES.new(key, mode, iv) res = c.encrypt(t) ...
rid = url.split('=')[-1] async with aiohttp.ClientSession() as session: async with session.get('https://weblink10.netease.im/socket.io/1/') as resp: res = await resp.text() sessid = res.split(':')[0] ws_url = 'wss://weblink10.netease.im/socket.io/1...
rid = url.split('=')[-1] async with aiohttp.ClientSession() as session: async with session.get('https://weblink10.netease.im/socket.io/1/') as resp: res = await resp.text() sessid = res.split(':')[0] ws_url = 'wss://weblink10.netease.im/socket.io/1...
141
562
970
1,532
from Crypto.Cipher import AES from Crypto.Util.Padding import pad import aiohttp import json import base64 class Look: heartbeat = '2::' heartbeatInterval = 30 @staticmethod def aes_(t, key): t = t.encode('utf-8') t = pad(t, AES.block_size) key = key.encode() iv = b'01...
from Crypto.Cipher import AES from Crypto.Util.Padding import pad import aiohttp import json import base64 class Look: heartbeat = '2::' heartbeatInterval = 30 @staticmethod def aes_(t, key): t = t.encode('utf-8') t = pad(t, AES.block_size) key = key.encode() iv = b'01...
27,014
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/pps.py
34,36
6,74
decode_msg
QiXiu
36,74
36,74
class QiXiu: heartbeat = None @staticmethod async def get_ws_info(url): rid = url.split('/')[-1] s = bytes([57, 77, 83, 73, 53, 86, 85, 71, 50, 81, 74, 80, 66, 52, 78, 54, 68, 48, 81, 83, 89, 87, 69, 72, 67, 90, 83, 75, 84, 49, 77, 50, 84, 65, 75, 88]).decode('utf-8') ...
class QiXiu: heartbeat = None @staticmethod async def get_ws_info(url): rid = url.split('/')[-1] s = bytes([57, 77, 83, 73, 53, 86, 85, 71, 50, 81, 74, 80, 66, 52, 78, 54, 68, 48, 81, 83, 89, 87, 69, 72, 67, 90, 83, 75, 84, 49, 77, 50, 84, 65, 75, 88]).decode('utf-8') ...
message = json.loads(data) msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'other'} for ms in message: m = ms['ct'] type_ = ms['t'] # 200001:进场消息 # 300001:聊天信息 # 102001:礼物 # 1100002:礼物 # 400001:人气...
message = json.loads(data) msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'other'} for ms in message: m = ms['ct'] type_ = ms['t'] # 200001:进场消息 # 300001:聊天信息 # 102001:礼物 # 1100002:礼物 # 400001:人气...
121
497
556
1,053
import hashlib import urllib.parse import json class QiXiu: heartbeat = None @staticmethod async def get_ws_info(url): rid = url.split('/')[-1] s = bytes([57, 77, 83, 73, 53, 86, 85, 71, 50, 81, 74, 80, 66, 52, 78, 54, 68, 48, 81, 83, 89, 87, 69, 72, 67, 90, 83, 75, 84,...
import hashlib import urllib.parse import json class QiXiu: heartbeat = None @staticmethod async def get_ws_info(url): rid = url.split('/')[-1] s = bytes([57, 77, 83, 73, 53, 86, 85, 71, 50, 81, 74, 80, 66, 52, 78, 54, 68, 48, 81, 83, 89, 87, 69, 72, 67, 90, 83, 75, 84,...
27,015
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/qf.py
10,12
6,66
get_ws_info
QF
12,39
12,39
class QF: heartbeat = '2::' heartbeatInterval = 30 @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(message): msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'other'} type_ = message[0] if type_ == '3': data...
class QF: heartbeat = '2::' heartbeatInterval = 30 @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(message): msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'other'} type_ = message[0] if type_ == '3': data...
rid = url.split('/')[-1] async with aiohttp.ClientSession() as session: async with session.get('https://conn-chat.qf.56.com/socket.io/1/') as resp: res = await resp.text() sessid = res.split(':')[0] ws_url = 'wss://conn-chat.qf.56.com/socket.io...
rid = url.split('/')[-1] async with aiohttp.ClientSession() as session: async with session.get('https://conn-chat.qf.56.com/socket.io/1/') as resp: res = await resp.text() sessid = res.split(':')[0] ws_url = 'wss://conn-chat.qf.56.com/socket.io...
86
405
355
760
import aiohttp import json import time class QF: heartbeat = '2::' heartbeatInterval = 30 @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(message): msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'other'} type_ = message[0] ...
import aiohttp import json import time class QF: heartbeat = '2::' heartbeatInterval = 30 @staticmethod async def get_ws_info(url): FILL_FUNC_BODY @staticmethod def decode_msg(message): msgs = [] msg = {'name': '', 'content': '', 'msg_type': 'other'} type_ = message[0] ...
27,016
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__logger.py
56,57
1,104
createLogFile
57,84
57,84
#!/usr/bin/env python # -*- coding: utf-8 -*- # filename: __logger.py # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this fil...
#!/usr/bin/env python # -*- coding: utf-8 -*- # filename: __logger.py # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this fil...
if filename.endswith('/'): raise ValueError("The logfile is a dir not a file") if os.path.exists(filename) and os.path.isfile(filename): pass else: fileComposition = str.split(filename, '/') print(fileComposition) currentFile = '' for item in fileComposition: ...
if filename.endswith('/'): raise ValueError("The logfile is a dir not a file") if os.path.exists(filename) and os.path.isfile(filename): pass else: fileComposition = str.split(filename, '/') print(fileComposition) currentFile = '' for item in fileComposition: ...
77
839
283
1,122
#!/usr/bin/env python # -*- coding: utf-8 -*- # filename: __logger.py # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this fil...
#!/usr/bin/env python # -*- coding: utf-8 -*- # filename: __logger.py # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this fil...
27,017
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__packet.py
49,51
20,71
readFrom
RequestPacket
51,71
51,71
class RequestPacket(util.struct): mapcls_context = util.mapclass(util.string, util.string) mapcls_status = util.mapclass(util.string, util.string) def __init__(self): self.iVersion = 0 self.cPacketType = 0 self.iMessageType = 0 self.iRequestId = 0 self.sServantName =...
class RequestPacket(util.struct): mapcls_context = util.mapclass(util.string, util.string) mapcls_status = util.mapclass(util.string, util.string) def __init__(self): self.iVersion = 0 self.cPacketType = 0 self.iMessageType = 0 self.iRequestId = 0 self.sServantName =...
value = RequestPacket() value.iVersion = ios.read(util.int16, 1, True, 0) print(("iVersion = %d" % value.iVersion)) value.cPacketType = ios.read(util.int8, 2, True, 0) print(("cPackerType = %d" % value.cPacketType)) value.iMessageType = ios.read(util.int32, 3, True, 0) ...
value = RequestPacket() value.iVersion = ios.read(util.int16, 1, True, 0) print(("iVersion = %d" % value.iVersion)) value.cPacketType = ios.read(util.int8, 2, True, 0) print(("cPackerType = %d" % value.cPacketType)) value.iMessageType = ios.read(util.int32, 3, True, 0) ...
87
417
389
806
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
27,018
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__packet.py
94,96
71,105
readFrom
ResponsePacket
96,105
96,105
class ResponsePacket(util.struct): __tars_class__ = "tars.RpcMessage.ResponsePacket" mapcls_status = util.mapclass(util.string, util.string) def __init__(self): self.iVersion = 0 self.cPacketType = 0 self.iRequestId = 0 self.iMessageType = 0 self.iRet = 0 sel...
class ResponsePacket(util.struct): __tars_class__ = "tars.RpcMessage.ResponsePacket" mapcls_status = util.mapclass(util.string, util.string) def __init__(self): self.iVersion = 0 self.cPacketType = 0 self.iRequestId = 0 self.iMessageType = 0 self.iRet = 0 sel...
value = ResponsePacket() value.iVersion = ios.read(util.int16, 1, True) value.cPacketType = ios.read(util.int8, 2, True) value.iRequestId = ios.read(util.int32, 3, True) value.iMessageType = ios.read(util.int32, 4, True) value.iRet = ios.read(util.int32, 5, True) ...
value = ResponsePacket() value.iVersion = ios.read(util.int16, 1, True) value.cPacketType = ios.read(util.int8, 2, True) value.iRequestId = ios.read(util.int32, 3, True) value.iMessageType = ios.read(util.int32, 4, True) value.iRet = ios.read(util.int32, 5, True) ...
40
317
183
500
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
27,019
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__tars.py
29,30
21,36
getBuffer
BinBuffer
30,32
30,32
class BinBuffer: def __init__(self, buff=bytes()): self.buffer = buff self.position = 0 def writeBuf(self, buff): self.buffer += buff def getBuffer(self): FILL_FUNC_BODY def length(self): return len(self.buffer)
class BinBuffer: def __init__(self, buff=bytes()): self.buffer = buff self.position = 0 def writeBuf(self, buff): self.buffer += buff def getBuffer(self): FILL_FUNC_BODY def length(self): return len(self.buffer)
return self.buffer
return self.buffer
2
88
9
97
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
27,020
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__tars.py
52,54
36,62
writeTo
DataHead
54,62
54,62
class DataHead: EN_INT8 = 0 EN_INT16 = 1 EN_INT32 = 2 EN_INT64 = 3 EN_FLOAT = 4 EN_DOUBLE = 5 EN_STRING1 = 6 EN_STRING4 = 7 EN_MAP = 8 EN_LIST = 9 EN_STRUCTBEGIN = 10 EN_STRUCTEND = 11 EN_ZERO = 12 EN_BYTES = 13 @staticmethod def writeTo(buff, tag, vtype)...
class DataHead: EN_INT8 = 0 EN_INT16 = 1 EN_INT32 = 2 EN_INT64 = 3 EN_FLOAT = 4 EN_DOUBLE = 5 EN_STRING1 = 6 EN_STRING4 = 7 EN_MAP = 8 EN_LIST = 9 EN_STRUCTBEGIN = 10 EN_STRUCTEND = 11 EN_ZERO = 12 EN_BYTES = 13 @staticmethod def writeTo(buff, tag, vtype)...
if tag < 15: helper = (tag << 4) | vtype buff.writeBuf(struct.pack('!B', helper)) else: helper = (0xF0 | vtype) << 8 | tag buff.writeBuf(struct.pack('!H', helper))
if tag < 15: helper = (tag << 4) | vtype buff.writeBuf(struct.pack('!B', helper)) else: helper = (0xF0 | vtype) << 8 | tag buff.writeBuf(struct.pack('!H', helper))
25
159
83
242
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
27,022
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__tars.py
90,91
62,179
__writeInt64
TarsOutputStream
91,97
91,97
class TarsOutputStream(object): def __init__(self): self.__buffer = BinBuffer() def __writeBoolean(self, tag, value): self.__writeInt8(tag, int(value)) def __writeInt8(self, tag, value): if value == 0: DataHead.writeTo(self.__buffer, tag, DataHead.EN_ZERO) else:...
class TarsOutputStream(object): def __init__(self): self.__buffer = BinBuffer() def __writeBoolean(self, tag, value): self.__writeInt8(tag, int(value)) def __writeInt8(self, tag, value): if value == 0: DataHead.writeTo(self.__buffer, tag, DataHead.EN_ZERO) else:...
if value >= (-2147483648) and value <= 2147483647: self.__writeInt32(tag, value) else: DataHead.writeTo(self.__buffer, tag, DataHead.EN_INT64) self.__buffer.writeBuf(struct.pack('!q', value))
if value >= (-2147483648) and value <= 2147483647: self.__writeInt32(tag, value) else: DataHead.writeTo(self.__buffer, tag, DataHead.EN_INT64) self.__buffer.writeBuf(struct.pack('!q', value))
16
1,388
96
1,484
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
# Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the ...
27,024
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__util.py
222,223
172,253
getNode
ConsistentHashNew
229,245
223,245
class ConsistentHashNew(object): def __init__(self, nodes=None, nodeNumber=3): """ :param nodes: 服务器的节点的epstr列表 :param n_number: 一个节点对应的虚拟节点数量 :return: """ self.__nodes = nodes self.__nodeNumber = nodeNumber # 每一个节点对应多少个虚拟节点,这里默认是3个 s...
class ConsistentHashNew(object): def __init__(self, nodes=None, nodeNumber=3): """ :param nodes: 服务器的节点的epstr列表 :param n_number: 一个节点对应的虚拟节点数量 :return: """ self.__nodes = nodes self.__nodeNumber = nodeNumber # 每一个节点对应多少个虚拟节点,这里默认是3个 s...
keyStr = '' if isinstance(key, int): keyStr = "the keyStr is %d" % key elif isinstance(key, type('a')): keyStr = key else: raise TarsException("the hash code has wrong type") if self.__sortListForKey: key = self.__genKey(keyStr) ...
""" 返回这个字符串应该对应的node,这里先求出字符串的hash值,然后找到第一个小于等于的虚拟节点,然后返回node 如果hash值大于所有的节点,那么用第一个虚拟节点 :param : hashNum or keyStr :return: """ keyStr = '' if isinstance(key, int): keyStr = "the keyStr is %d" % key elif isinstance(key, type('a')): ...
48
719
166
885
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
27,025
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__util.py
155,156
140,163
newRelease
NewLock
156,163
156,163
class NewLock(object): def __init__(self): self.__count = 0 self.__lock = Lock() self.__lockForCount = Lock() pass def newAcquire(self): self.__lockForCount.acquire() self.__count += 1 if self.__count == 1: self.__lock.acquire() self._...
class NewLock(object): def __init__(self): self.__count = 0 self.__lock = Lock() self.__lockForCount = Lock() pass def newAcquire(self): self.__lockForCount.acquire() self.__count += 1 if self.__count == 1: self.__lock.acquire() self._...
self.__lockForCount.acquire() self.__count -= 1 if self.__count == 0: self.__lock.release() self.__lockForCount.release()
self.__lockForCount.acquire() self.__count -= 1 if self.__count == 0: self.__lock.release() self.__lockForCount.release()
10
121
55
176
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
27,026
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__util.py
53,53
52,54
size
klass
53,54
53,54
class klass(list): FILL_FUNC_BODY
class klass(list): FILL_FUNC_BODY
def size(self): return len(self)
def size(self): return len(self)
4
18
13
31
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
27,027
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__util.py
42,42
41,43
size
mapklass
42,43
42,43
class mapklass(dict): FILL_FUNC_BODY
class mapklass(dict): FILL_FUNC_BODY
def size(self): return len(self)
def size(self): return len(self)
4
19
13
32
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
27,028
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/danmaku/tars/__util.py
39,41
27,111
mapclass
util
41,50
41,50
class util: @staticmethod def printHex(buff): count = 0 for c in buff: sys.stdout.write("0X%02X " % ord(c)) count += 1 if count % 16 == 0: sys.stdout.write("\n") sys.stdout.write("\n") sys.stdout.flush() @staticmethod d...
class util: @staticmethod def printHex(buff): count = 0 for c in buff: sys.stdout.write("0X%02X " % ord(c)) count += 1 if count % 16 == 0: sys.stdout.write("\n") sys.stdout.write("\n") sys.stdout.flush() @staticmethod d...
class mapklass(dict): def size(self): return len(self) setattr(mapklass, '__tars_index__', 8) setattr(mapklass, '__tars_class__', "map<" + ktype.__tars_class__ + "," + vtype.__tars_class__ + ">") setattr(mapklass, 'ktype', ktype) setattr(mapklass, 'vty...
class mapklass(dict): def size(self): return len(self) setattr(mapklass, '__tars_index__', 8) setattr(mapklass, '__tars_class__', "map<" + ktype.__tars_class__ + "," + vtype.__tars_class__ + ">") setattr(mapklass, 'ktype', ktype) setattr(mapklass, 'vty...
28
616
137
753
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tencent is pleased to support the open source community by making Tars available. # # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance ...
27,029
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/danmu/main.py
16,17
1,44
main
17,23
17,23
# 部分弹幕功能代码来自项目:https://github.com/IsoaSFlus/danmaku,感谢大佬 # 快手弹幕代码来源及思路:https://github.com/py-wuhao/ks_barrage,感谢大佬 # 仅抓取用户弹幕,不包括入场提醒、礼物赠送等。 import asyncio import danmaku async def printer(q): while True: m = await q.get() if m['msg_type'] == 'danmaku': print(f'{m["name"]}:{m["content"...
# 部分弹幕功能代码来自项目:https://github.com/IsoaSFlus/danmaku,感谢大佬 # 快手弹幕代码来源及思路:https://github.com/py-wuhao/ks_barrage,感谢大佬 # 仅抓取用户弹幕,不包括入场提醒、礼物赠送等。 import asyncio import danmaku async def printer(q): while True: m = await q.get() if m['msg_type'] == 'danmaku': print(f'{m["name"]}:{m["content"...
q = asyncio.Queue() dmc = danmaku.DanmakuClient(url, q) asyncio.create_task(printer(q)) await dmc.start()
q = asyncio.Queue() dmc = danmaku.DanmakuClient(url, q) asyncio.create_task(printer(q)) await dmc.start()
10
680
60
740
# 部分弹幕功能代码来自项目:https://github.com/IsoaSFlus/danmaku,感谢大佬 # 快手弹幕代码来源及思路:https://github.com/py-wuhao/ks_barrage,感谢大佬 # 仅抓取用户弹幕,不包括入场提醒、礼物赠送等。 import asyncio import danmaku async def printer(q): while True: m = await q.get() if m['msg_type'] == 'danmaku': print(f'{m["name"]}:{m["content"...
# 部分弹幕功能代码来自项目:https://github.com/IsoaSFlus/danmaku,感谢大佬 # 快手弹幕代码来源及思路:https://github.com/py-wuhao/ks_barrage,感谢大佬 # 仅抓取用户弹幕,不包括入场提醒、礼物赠送等。 import asyncio import danmaku async def printer(q): while True: m = await q.get() if m['msg_type'] == 'danmaku': print(f'{m["name"]}:{m["content"...
27,030
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/douyu.py
119,120
11,134
get_real_url
DouYu
120,134
120,134
class DouYu: """ 可用来替换返回链接中的主机部分 两个阿里的CDN: dyscdnali1.douyucdn.cn dyscdnali3.douyucdn.cn 墙外不用带尾巴的akm cdn: hls3-akm.douyucdn.cn hlsa-akm.douyucdn.cn hls1a-akm.douyucdn.cn """ def __init__(self, rid): """ 房间号通常为1~8位纯数字,浏览器地址栏中看到的房间号不一定是真实rid. Args: ...
class DouYu: """ 可用来替换返回链接中的主机部分 两个阿里的CDN: dyscdnali1.douyucdn.cn dyscdnali3.douyucdn.cn 墙外不用带尾巴的akm cdn: hls3-akm.douyucdn.cn hlsa-akm.douyucdn.cn hls1a-akm.douyucdn.cn """ def __init__(self, rid): """ 房间号通常为1~8位纯数字,浏览器地址栏中看到的房间号不一定是真实rid. Args: ...
error, key = self.get_pre() if error == 0: pass elif error == 102: raise Exception('房间不存在') elif error == 104: raise Exception('房间未开播') else: key = self.get_js() real_url = {} real_url["flv"] = "http://vplay1a.douyuc...
error, key = self.get_pre() if error == 0: pass elif error == 102: raise Exception('房间不存在') elif error == 104: raise Exception('房间未开播') else: key = self.get_js() real_url = {} real_url["flv"] = "http://vplay1a.douyuc...
36
1,586
181
1,767
# 获取斗鱼直播间的真实流媒体地址,默认最高画质 # 使用 https://github.com/wbt5/real-url/issues/185 中两位大佬@wjxgzz @4bbu6j5885o3gpv6ss8找到的的CDN,在此感谢! import hashlib import re import time import execjs import requests class DouYu: """ 可用来替换返回链接中的主机部分 两个阿里的CDN: dyscdnali1.douyucdn.cn dyscdnali3.douyucdn.cn 墙外不用带尾巴的akm cdn:...
# 获取斗鱼直播间的真实流媒体地址,默认最高画质 # 使用 https://github.com/wbt5/real-url/issues/185 中两位大佬@wjxgzz @4bbu6j5885o3gpv6ss8找到的的CDN,在此感谢! import hashlib import re import time import execjs import requests class DouYu: """ 可用来替换返回链接中的主机部分 两个阿里的CDN: dyscdnali1.douyucdn.cn dyscdnali3.douyucdn.cn 墙外不用带尾巴的akm cdn:...
27,031
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/egame.py
44,45
1,56
get_real_url
45,53
45,53
# 获取企鹅电竞的真实流媒体地址。 # 默认画质为超清 import requests import re class EGame: def __init__(self, rid): self.rid = rid def get_real_url(self): room_url = 'https://share.egame.qq.com/cgi-bin/pgg_async_fcgi' post_data = { 'param': '''{"0":{"module":"pgg_live_read_svr","method":"get_li...
# 获取企鹅电竞的真实流媒体地址。 # 默认画质为超清 import requests import re class EGame: def __init__(self, rid): self.rid = rid def get_real_url(self): room_url = 'https://share.egame.qq.com/cgi-bin/pgg_async_fcgi' post_data = { 'param': '''{"0":{"module":"pgg_live_read_svr","method":"get_li...
try: eg = EGame(rid) return eg.get_real_url() except Exception as e: print('Exception:', e) return False
try: eg = EGame(rid) return eg.get_real_url() except Exception as e: print('Exception:', e) return False
14
509
55
564
# 获取企鹅电竞的真实流媒体地址。 # 默认画质为超清 import requests import re class EGame: def __init__(self, rid): self.rid = rid def get_real_url(self): room_url = 'https://share.egame.qq.com/cgi-bin/pgg_async_fcgi' post_data = { 'param': '''{"0":{"module":"pgg_live_read_svr","method":"get_li...
# 获取企鹅电竞的真实流媒体地址。 # 默认画质为超清 import requests import re class EGame: def __init__(self, rid): self.rid = rid def get_real_url(self): room_url = 'https://share.egame.qq.com/cgi-bin/pgg_async_fcgi' post_data = { 'param': '''{"0":{"module":"pgg_live_read_svr","method":"get_li...
27,032
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/egame.py
13,14
8,44
get_real_url
EGame
14,44
14,44
class EGame: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class EGame: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
room_url = 'https://share.egame.qq.com/cgi-bin/pgg_async_fcgi' post_data = { 'param': '''{"0":{"module":"pgg_live_read_svr","method":"get_live_and_profile_info","param":{"anchor_id":''' + str(self.rid) + ''',"layout_id":"hot","index":1,"other_uid":0}}}''' } ...
room_url = 'https://share.egame.qq.com/cgi-bin/pgg_async_fcgi' post_data = { 'param': '''{"0":{"module":"pgg_live_read_svr","method":"get_live_and_profile_info","param":{"anchor_id":''' + str(self.rid) + ''',"layout_id":"hot","index":1,"other_uid":0}}}''' } ...
63
45
407
452
# 获取企鹅电竞的真实流媒体地址。 # 默认画质为超清 import requests import re class EGame: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: eg = EGame(rid) return eg.get_real_url() except Exception as e: print('Exception:', e) ...
# 获取企鹅电竞的真实流媒体地址。 # 默认画质为超清 import requests import re class EGame: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: eg = EGame(rid) return eg.get_real_url() except Exception as e: print('Exception:', e) ...
27,033
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/fengbolive.py
43,44
1,55
get_real_url
44,52
44,52
# 新浪疯播直播:http://www.fengbolive.com/list?type=hot # 链接样式:http://www.fengbolive.com/live/88057518 from Crypto.Cipher import AES from urllib.parse import unquote import base64 import json import requests class FengBo: def __init__(self, rid): self.rid = rid def get_real_url(self): with request...
# 新浪疯播直播:http://www.fengbolive.com/list?type=hot # 链接样式:http://www.fengbolive.com/live/88057518 from Crypto.Cipher import AES from urllib.parse import unquote import base64 import json import requests class FengBo: def __init__(self, rid): self.rid = rid def get_real_url(self): with request...
try: fb = FengBo(rid) return fb.get_real_url() except Exception as e: print('Exception:', e) return False
try: fb = FengBo(rid) return fb.get_real_url() except Exception as e: print('Exception:', e) return False
14
492
58
550
# 新浪疯播直播:http://www.fengbolive.com/list?type=hot # 链接样式:http://www.fengbolive.com/live/88057518 from Crypto.Cipher import AES from urllib.parse import unquote import base64 import json import requests class FengBo: def __init__(self, rid): self.rid = rid def get_real_url(self): with request...
# 新浪疯播直播:http://www.fengbolive.com/list?type=hot # 链接样式:http://www.fengbolive.com/live/88057518 from Crypto.Cipher import AES from urllib.parse import unquote import base64 import json import requests class FengBo: def __init__(self, rid): self.rid = rid def get_real_url(self): with request...
27,034
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/fengbolive.py
16,17
11,43
get_real_url
FengBo
17,43
17,43
class FengBo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class FengBo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
with requests.Session() as s: res = s.get(f'https://external.fengbolive.com/cgi-bin/get_anchor_info_proxy.fcgi?anchorid={self.rid}') res = res.json() if res['ret'] == 1: info = res['info'] info = unquote(info, 'utf-8') # 开始AES解密 de...
with requests.Session() as s: res = s.get(f'https://external.fengbolive.com/cgi-bin/get_anchor_info_proxy.fcgi?anchorid={self.rid}') res = res.json() if res['ret'] == 1: info = res['info'] info = unquote(info, 'utf-8') # 开始AES解密 de...
73
46
332
378
# 新浪疯播直播:http://www.fengbolive.com/list?type=hot # 链接样式:http://www.fengbolive.com/live/88057518 from Crypto.Cipher import AES from urllib.parse import unquote import base64 import json import requests class FengBo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef ge...
# 新浪疯播直播:http://www.fengbolive.com/list?type=hot # 链接样式:http://www.fengbolive.com/live/88057518 from Crypto.Cipher import AES from urllib.parse import unquote import base64 import json import requests class FengBo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef ge...
27,035
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/hongle.py
78,79
1,90
get_real_url
79,87
79,87
# 红人直播:https://www.hongle.tv/ # 该平台需登陆,下面代码中已集成一个账号的登陆方式; # 如登陆信息过期,可用自己的账号登陆后,查找浏览器Local Storage中的hrtk字段,替换代码中的accesstoken from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib import json class HongLe: def __init__(self, rid): self.rid = rid ...
# 红人直播:https://www.hongle.tv/ # 该平台需登陆,下面代码中已集成一个账号的登陆方式; # 如登陆信息过期,可用自己的账号登陆后,查找浏览器Local Storage中的hrtk字段,替换代码中的accesstoken from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib import json class HongLe: def __init__(self, rid): self.rid = rid ...
try: hl = HongLe(rid) return hl.get_real_url() except Exception as e: print('Exception:', e) return False
try: hl = HongLe(rid) return hl.get_real_url() except Exception as e: print('Exception:', e) return False
14
989
57
1,046
# 红人直播:https://www.hongle.tv/ # 该平台需登陆,下面代码中已集成一个账号的登陆方式; # 如登陆信息过期,可用自己的账号登陆后,查找浏览器Local Storage中的hrtk字段,替换代码中的accesstoken from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib import json class HongLe: def __init__(self, rid): self.rid = rid ...
# 红人直播:https://www.hongle.tv/ # 该平台需登陆,下面代码中已集成一个账号的登陆方式; # 如登陆信息过期,可用自己的账号登陆后,查找浏览器Local Storage中的hrtk字段,替换代码中的accesstoken from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib import json class HongLe: def __init__(self, rid): self.rid = rid ...
27,036
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/hongle.py
18,19
13,78
get_real_url
HongLe
19,78
19,78
class HongLe: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class HongLe: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
# 模拟登陆 with requests.Session() as s: pass tt = int(time.time() * 1000) url = f'https://service.hongle.tv/v2/userw/login?_st1={tt}' data = { '_st1': tt, 'geetest_challenge': '7f4f6fd6257799c0bcac1f38c21c042dl0', 'geetest_seccode': '...
# 模拟登陆 with requests.Session() as s: pass tt = int(time.time() * 1000) url = f'https://service.hongle.tv/v2/userw/login?_st1={tt}' data = { '_st1': tt, 'geetest_challenge': '7f4f6fd6257799c0bcac1f38c21c042dl0', 'geetest_seccode': '...
146
45
832
877
# 红人直播:https://www.hongle.tv/ # 该平台需登陆,下面代码中已集成一个账号的登陆方式; # 如登陆信息过期,可用自己的账号登陆后,查找浏览器Local Storage中的hrtk字段,替换代码中的accesstoken from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib import json class HongLe: def __init__(self, rid): self.rid = rid ...
# 红人直播:https://www.hongle.tv/ # 该平台需登陆,下面代码中已集成一个账号的登陆方式; # 如登陆信息过期,可用自己的账号登陆后,查找浏览器Local Storage中的hrtk字段,替换代码中的accesstoken from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib import json class HongLe: def __init__(self, rid): self.rid = rid ...
27,037
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/huajiao.py
26,27
1,38
get_real_url
27,35
27,35
# 获取花椒直播的真实流媒体地址。 import requests import time class HuaJiao: def __init__(self, rid): self.rid = rid self.headers = { 'Referer': 'https://h.huajiao.com/l/index?liveid={}&qd=hu'.format(rid) } def get_real_url(self): tt = str(time.time()) try: r...
# 获取花椒直播的真实流媒体地址。 import requests import time class HuaJiao: def __init__(self, rid): self.rid = rid self.headers = { 'Referer': 'https://h.huajiao.com/l/index?liveid={}&qd=hu'.format(rid) } def get_real_url(self): tt = str(time.time()) try: r...
try: hj = HuaJiao(rid) return hj.get_real_url() except Exception as e: print('Exception:', e) return False
try: hj = HuaJiao(rid) return hj.get_real_url() except Exception as e: print('Exception:', e) return False
14
299
60
359
# 获取花椒直播的真实流媒体地址。 import requests import time class HuaJiao: def __init__(self, rid): self.rid = rid self.headers = { 'Referer': 'https://h.huajiao.com/l/index?liveid={}&qd=hu'.format(rid) } def get_real_url(self): tt = str(time.time()) try: r...
# 获取花椒直播的真实流媒体地址。 import requests import time class HuaJiao: def __init__(self, rid): self.rid = rid self.headers = { 'Referer': 'https://h.huajiao.com/l/index?liveid={}&qd=hu'.format(rid) } def get_real_url(self): tt = str(time.time()) try: r...
27,038
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/huajiao.py
15,16
7,26
get_real_url
HuaJiao
16,26
16,26
class HuaJiao: def __init__(self, rid): self.rid = rid self.headers = { 'Referer': 'https://h.huajiao.com/l/index?liveid={}&qd=hu'.format(rid) } def get_real_url(self): FILL_FUNC_BODY
class HuaJiao: def __init__(self, rid): self.rid = rid self.headers = { 'Referer': 'https://h.huajiao.com/l/index?liveid={}&qd=hu'.format(rid) } def get_real_url(self): FILL_FUNC_BODY
tt = str(time.time()) try: room_url = 'https://h.huajiao.com/api/getFeedInfo?sid={tt}&liveid={rid}'.format(tt=tt, rid=self.rid) response = requests.get(url=room_url, headers=self.headers).json() real_url = response.get('data').get('live').get('main') except: ...
tt = str(time.time()) try: room_url = 'https://h.huajiao.com/api/getFeedInfo?sid={tt}&liveid={rid}'.format(tt=tt, rid=self.rid) response = requests.get(url=room_url, headers=self.headers).json() real_url = response.get('data').get('live').get('main') except: ...
20
94
142
236
# 获取花椒直播的真实流媒体地址。 import requests import time class HuaJiao: def __init__(self, rid): self.rid = rid self.headers = { 'Referer': 'https://h.huajiao.com/l/index?liveid={}&qd=hu'.format(rid) } def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: hj...
# 获取花椒直播的真实流媒体地址。 import requests import time class HuaJiao: def __init__(self, rid): self.rid = rid self.headers = { 'Referer': 'https://h.huajiao.com/l/index?liveid={}&qd=hu'.format(rid) } def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: hj...
27,039
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/huomao.py
64,65
1,76
get_real_url
65,73
65,73
# 获取火猫直播的真实流媒体地址,默认为最高画质. # 获取的流媒体地址如:http://live-lx-hdl.huomaotv.cn/live/qvCESZ?t=1573928152&r=377789475848&stream=qvCESZ&rid=oubvc2y3v&token=44a7f115f0af496e268bcbb7cdbb63b1&url=http%3A%2F%2Flive-lx-hdl.huomaotv.cn%2Flive%2FqvCESZ&from=huomaoh5room # 实际上使用http://live-lx-hdl.huomaotv.cn/live/qvCESZ?token=44a7f115f0af4...
# 获取火猫直播的真实流媒体地址,默认为最高画质. # 获取的流媒体地址如:http://live-lx-hdl.huomaotv.cn/live/qvCESZ?t=1573928152&r=377789475848&stream=qvCESZ&rid=oubvc2y3v&token=44a7f115f0af496e268bcbb7cdbb63b1&url=http%3A%2F%2Flive-lx-hdl.huomaotv.cn%2Flive%2FqvCESZ&from=huomaoh5room # 实际上使用http://live-lx-hdl.huomaotv.cn/live/qvCESZ?token=44a7f115f0af4...
try: hm = HuoMao(rid) return hm.get_real_url() except Exception as e: print('Exception:', e) return False
try: hm = HuoMao(rid) return hm.get_real_url() except Exception as e: print('Exception:', e) return False
14
966
59
1,025
# 获取火猫直播的真实流媒体地址,默认为最高画质. # 获取的流媒体地址如:http://live-lx-hdl.huomaotv.cn/live/qvCESZ?t=1573928152&r=377789475848&stream=qvCESZ&rid=oubvc2y3v&token=44a7f115f0af496e268bcbb7cdbb63b1&url=http%3A%2F%2Flive-lx-hdl.huomaotv.cn%2Flive%2FqvCESZ&from=huomaoh5room # 实际上使用http://live-lx-hdl.huomaotv.cn/live/qvCESZ?token=44a7f115f0af4...
# 获取火猫直播的真实流媒体地址,默认为最高画质. # 获取的流媒体地址如:http://live-lx-hdl.huomaotv.cn/live/qvCESZ?t=1573928152&r=377789475848&stream=qvCESZ&rid=oubvc2y3v&token=44a7f115f0af496e268bcbb7cdbb63b1&url=http%3A%2F%2Flive-lx-hdl.huomaotv.cn%2Flive%2FqvCESZ&from=huomaoh5room # 实际上使用http://live-lx-hdl.huomaotv.cn/live/qvCESZ?token=44a7f115f0af4...
27,040
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/huomao.py
38,39
12,64
get_real_url
HuoMao
39,64
39,64
class HuoMao: def __init__(self, rid): """ 火猫直播已经倒闭了 Args: rid: 房间号 """ self.rid = rid @staticmethod def get_videoids(rid): room_url = f'https://www.huomao.com/mobile/mob_live/{rid}' response = requests.get(url=room_url).text try:...
class HuoMao: def __init__(self, rid): """ 火猫直播已经倒闭了 Args: rid: 房间号 """ self.rid = rid @staticmethod def get_videoids(rid): room_url = f'https://www.huomao.com/mobile/mob_live/{rid}' response = requests.get(url=room_url).text try:...
videoids = self.get_videoids(self.rid) if videoids: token = self.get_token(videoids) room_url = 'https://www.huomao.com/swf/live_data' post_data = { 'cdns': 1, 'streamtype': 'live', 'VideoIDS': videoids, ...
videoids = self.get_videoids(self.rid) if videoids: token = self.get_token(videoids) room_url = 'https://www.huomao.com/swf/live_data' post_data = { 'cdns': 1, 'streamtype': 'live', 'VideoIDS': videoids, ...
58
294
332
626
# 获取火猫直播的真实流媒体地址,默认为最高画质. # 获取的流媒体地址如:http://live-lx-hdl.huomaotv.cn/live/qvCESZ?t=1573928152&r=377789475848&stream=qvCESZ&rid=oubvc2y3v&token=44a7f115f0af496e268bcbb7cdbb63b1&url=http%3A%2F%2Flive-lx-hdl.huomaotv.cn%2Flive%2FqvCESZ&from=huomaoh5room # 实际上使用http://live-lx-hdl.huomaotv.cn/live/qvCESZ?token=44a7f115f0af4...
# 获取火猫直播的真实流媒体地址,默认为最高画质. # 获取的流媒体地址如:http://live-lx-hdl.huomaotv.cn/live/qvCESZ?t=1573928152&r=377789475848&stream=qvCESZ&rid=oubvc2y3v&token=44a7f115f0af496e268bcbb7cdbb63b1&url=http%3A%2F%2Flive-lx-hdl.huomaotv.cn%2Flive%2FqvCESZ&from=huomaoh5room # 实际上使用http://live-lx-hdl.huomaotv.cn/live/qvCESZ?token=44a7f115f0af4...
27,041
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/huya.py
11,12
1,59
live
12,31
12,31
# 获取虎牙直播的真实流媒体地址。 import requests import re import base64 import urllib.parse import hashlib import time def live(e): FILL_FUNC_BODYdef get_real_url(room_id): try: room_url = 'https://m.huya.com/' + str(room_id) header = { 'Content-Type': 'application/x-www-form-urlencoded', ...
# 获取虎牙直播的真实流媒体地址。 import requests import re import base64 import urllib.parse import hashlib import time def live(e): FILL_FUNC_BODYdef get_real_url(room_id): try: room_url = 'https://m.huya.com/' + str(room_id) header = { 'Content-Type': 'application/x-www-form-urlencoded', ...
i, b = e.split('?') r = i.split('/') s = re.sub(r'.(flv|m3u8)', '', r[-1]) c = b.split('&', 3) c = [i for i in c if i != ''] n = {i.split('=')[0]: i.split('=')[1] for i in c} fm = urllib.parse.unquote(n['fm']) u = base64.b64decode(fm).decode('utf-8') p = u.split('_')[0] f = str(i...
i, b = e.split('?') r = i.split('/') s = re.sub(r'.(flv|m3u8)', '', r[-1]) c = b.split('&', 3) c = [i for i in c if i != ''] n = {i.split('=')[0]: i.split('=')[1] for i in c} fm = urllib.parse.unquote(n['fm']) u = base64.b64decode(fm).decode('utf-8') p = u.split('_')[0] f = str(i...
78
460
305
765
# 获取虎牙直播的真实流媒体地址。 import requests import re import base64 import urllib.parse import hashlib import time def live(e): FILL_FUNC_BODYdef get_real_url(room_id): try: room_url = 'https://m.huya.com/' + str(room_id) header = { 'Content-Type': 'application/x-www-form-urlencoded', ...
# 获取虎牙直播的真实流媒体地址。 import requests import re import base64 import urllib.parse import hashlib import time def live(e): FILL_FUNC_BODYdef get_real_url(room_id): try: room_url = 'https://m.huya.com/' + str(room_id) header = { 'Content-Type': 'application/x-www-form-urlencoded', ...
27,042
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/imifun.py
27,28
1,39
get_real_url
28,36
28,36
# 艾米直播:https://www.imifun.com/ import requests import re class IMFun: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://www.imifun.com/{self.rid}').text roomid = re.search(r'mixPkPlayUrl ="rtmp://wsmd.happ...
# 艾米直播:https://www.imifun.com/ import requests import re class IMFun: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://www.imifun.com/{self.rid}').text roomid = re.search(r'mixPkPlayUrl ="rtmp://wsmd.happ...
try: imf = IMFun(rid) return imf.get_real_url() except Exception as e: print('Exception:', e) return False
try: imf = IMFun(rid) return imf.get_real_url() except Exception as e: print('Exception:', e) return False
14
305
57
362
# 艾米直播:https://www.imifun.com/ import requests import re class IMFun: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://www.imifun.com/{self.rid}').text roomid = re.search(r'mixPkPlayUrl ="rtmp://wsmd.happ...
# 艾米直播:https://www.imifun.com/ import requests import re class IMFun: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://www.imifun.com/{self.rid}').text roomid = re.search(r'mixPkPlayUrl ="rtmp://wsmd.happ...
27,043
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/imifun.py
12,13
7,27
get_real_url
IMFun
13,27
13,27
class IMFun: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class IMFun: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
with requests.Session() as s: res = s.get(f'https://www.imifun.com/{self.rid}').text roomid = re.search(r'mixPkPlayUrl ="rtmp://wsmd.happyia.com/ivp/(\d+-\d+)"', res).group(1) if roomid: status = re.search(r"isLive:(\d),", res).group(1) if status == '1': ...
with requests.Session() as s: res = s.get(f'https://www.imifun.com/{self.rid}').text roomid = re.search(r'mixPkPlayUrl ="rtmp://wsmd.happyia.com/ivp/(\d+-\d+)"', res).group(1) if roomid: status = re.search(r"isLive:(\d),", res).group(1) if status == '1': ...
33
45
197
242
# 艾米直播:https://www.imifun.com/ import requests import re class IMFun: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: imf = IMFun(rid) return imf.get_real_url() except Exception as e: print('Exception:', e) ...
# 艾米直播:https://www.imifun.com/ import requests import re class IMFun: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: imf = IMFun(rid) return imf.get_real_url() except Exception as e: print('Exception:', e) ...
27,044
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/immomo.py
31,32
1,44
get_real_url
32,40
32,40
import requests class ImMoMo: def __init__(self, rid): self.rid = rid def get_real_url(self): url = 'https://web.immomo.com/webmomo/api/scene/profile/roominfos' data = { 'stid': self.rid, 'src': 'url' } with requests.Session() as s: ...
import requests class ImMoMo: def __init__(self, rid): self.rid = rid def get_real_url(self): url = 'https://web.immomo.com/webmomo/api/scene/profile/roominfos' data = { 'stid': self.rid, 'src': 'url' } with requests.Session() as s: ...
try: mm = ImMoMo(rid) return mm.get_real_url() except Exception as e: print('Exception:', e) return False
try: mm = ImMoMo(rid) return mm.get_real_url() except Exception as e: print('Exception:', e) return False
14
287
56
343
import requests class ImMoMo: def __init__(self, rid): self.rid = rid def get_real_url(self): url = 'https://web.immomo.com/webmomo/api/scene/profile/roominfos' data = { 'stid': self.rid, 'src': 'url' } with requests.Session() as s: ...
import requests class ImMoMo: def __init__(self, rid): self.rid = rid def get_real_url(self): url = 'https://web.immomo.com/webmomo/api/scene/profile/roominfos' data = { 'stid': self.rid, 'src': 'url' } with requests.Session() as s: ...
27,045
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/immomo.py
8,9
4,31
get_real_url
ImMoMo
9,31
9,31
class ImMoMo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class ImMoMo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
url = 'https://web.immomo.com/webmomo/api/scene/profile/roominfos' data = { 'stid': self.rid, 'src': 'url' } with requests.Session() as s: s.get('https://web.immomo.com') res = s.post(url, data=data).json() ec = res.get('ec', 0) ...
url = 'https://web.immomo.com/webmomo/api/scene/profile/roominfos' data = { 'stid': self.rid, 'src': 'url' } with requests.Session() as s: s.get('https://web.immomo.com') res = s.post(url, data=data).json() ec = res.get('ec', 0) ...
44
45
207
252
import requests class ImMoMo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: mm = ImMoMo(rid) return mm.get_real_url() except Exception as e: print('Exception:', e) return False if __name__ == '__main...
import requests class ImMoMo: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: mm = ImMoMo(rid) return mm.get_real_url() except Exception as e: print('Exception:', e) return False if __name__ == '__main...
27,046
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/inke.py
26,27
1,38
get_real_url
27,35
27,35
# 获取映客直播的真实流媒体地址。 import requests class InKe: def __init__(self, rid): self.rid = rid def get_real_url(self): try: room_url = 'https://webapi.busi.inke.cn/web/live_share_pc?uid=' + str(self.rid) response = requests.get(url=room_url).json() record_url = re...
# 获取映客直播的真实流媒体地址。 import requests class InKe: def __init__(self, rid): self.rid = rid def get_real_url(self): try: room_url = 'https://webapi.busi.inke.cn/web/live_share_pc?uid=' + str(self.rid) response = requests.get(url=room_url).json() record_url = re...
try: inke = InKe(rid) return inke.get_real_url() except Exception as e: print('Exception:', e) return False
try: inke = InKe(rid) return inke.get_real_url() except Exception as e: print('Exception:', e) return False
14
270
57
327
# 获取映客直播的真实流媒体地址。 import requests class InKe: def __init__(self, rid): self.rid = rid def get_real_url(self): try: room_url = 'https://webapi.busi.inke.cn/web/live_share_pc?uid=' + str(self.rid) response = requests.get(url=room_url).json() record_url = re...
# 获取映客直播的真实流媒体地址。 import requests class InKe: def __init__(self, rid): self.rid = rid def get_real_url(self): try: room_url = 'https://webapi.busi.inke.cn/web/live_share_pc?uid=' + str(self.rid) response = requests.get(url=room_url).json() record_url = re...
27,047
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/inke.py
11,12
6,26
get_real_url
InKe
12,26
12,26
class InKe: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class InKe: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
try: room_url = 'https://webapi.busi.inke.cn/web/live_share_pc?uid=' + str(self.rid) response = requests.get(url=room_url).json() record_url = response.get('data').get('file').get('record_url') stream_addr = response.get('data').get('live_addr') real_u...
try: room_url = 'https://webapi.busi.inke.cn/web/live_share_pc?uid=' + str(self.rid) response = requests.get(url=room_url).json() record_url = response.get('data').get('file').get('record_url') stream_addr = response.get('data').get('live_addr') real_u...
28
45
169
214
# 获取映客直播的真实流媒体地址。 import requests class InKe: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: inke = InKe(rid) return inke.get_real_url() except Exception as e: print('Exception:', e) return False if...
# 获取映客直播的真实流媒体地址。 import requests class InKe: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: inke = InKe(rid) return inke.get_real_url() except Exception as e: print('Exception:', e) return False if...
27,048
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/iqiyi.py
75,76
1,87
get_real_url
76,84
76,84
# 获取爱奇艺直播的真实流媒体地址。 # iqiyi.js是cmd5x加密函数 import json import re import time import urllib.parse import execjs import requests class IQiYi: """获取爱奇艺 m3u8 格式直播源 输入房间号,通常是数字,比如链接 https://gamelive.iqiyi.com/w/74429 中的 74429。 注意: 爱奇艺有部分直播是来自pps的,要打开房间看链接是否有跳转,有则用pps.py 爱奇艺直播依赖js环境,建议安装node.js。...
# 获取爱奇艺直播的真实流媒体地址。 # iqiyi.js是cmd5x加密函数 import json import re import time import urllib.parse import execjs import requests class IQiYi: """获取爱奇艺 m3u8 格式直播源 输入房间号,通常是数字,比如链接 https://gamelive.iqiyi.com/w/74429 中的 74429。 注意: 爱奇艺有部分直播是来自pps的,要打开房间看链接是否有跳转,有则用pps.py 爱奇艺直播依赖js环境,建议安装node.js。...
try: iqiyi = IQiYi(rid) return iqiyi.get_real_url() except Exception as e: print('Exception:', e) return False
try: iqiyi = IQiYi(rid) return iqiyi.get_real_url() except Exception as e: print('Exception:', e) return False
14
889
64
953
# 获取爱奇艺直播的真实流媒体地址。 # iqiyi.js是cmd5x加密函数 import json import re import time import urllib.parse import execjs import requests class IQiYi: """获取爱奇艺 m3u8 格式直播源 输入房间号,通常是数字,比如链接 https://gamelive.iqiyi.com/w/74429 中的 74429。 注意: 爱奇艺有部分直播是来自pps的,要打开房间看链接是否有跳转,有则用pps.py 爱奇艺直播依赖js环境,建议安装node.js。...
# 获取爱奇艺直播的真实流媒体地址。 # iqiyi.js是cmd5x加密函数 import json import re import time import urllib.parse import execjs import requests class IQiYi: """获取爱奇艺 m3u8 格式直播源 输入房间号,通常是数字,比如链接 https://gamelive.iqiyi.com/w/74429 中的 74429。 注意: 爱奇艺有部分直播是来自pps的,要打开房间看链接是否有跳转,有则用pps.py 爱奇艺直播依赖js环境,建议安装node.js。...
27,049
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/iqiyi.py
29,30
13,75
get_real_url
IQiYi
41,75
30,75
class IQiYi: """获取爱奇艺 m3u8 格式直播源 输入房间号,通常是数字,比如链接 https://gamelive.iqiyi.com/w/74429 中的 74429。 注意: 爱奇艺有部分直播是来自pps的,要打开房间看链接是否有跳转,有则用pps.py 爱奇艺直播依赖js环境,建议安装node.js。 Attributes: rid: 房间号 """ def __init__(self, rid): self.rid = rid self.s = requests.Ses...
class IQiYi: """获取爱奇艺 m3u8 格式直播源 输入房间号,通常是数字,比如链接 https://gamelive.iqiyi.com/w/74429 中的 74429。 注意: 爱奇艺有部分直播是来自pps的,要打开房间看链接是否有跳转,有则用pps.py 爱奇艺直播依赖js环境,建议安装node.js。 Attributes: rid: 房间号 """ def __init__(self, rid): self.rid = rid self.s = requests.Ses...
res = self.s.get('https://m-gamelive.iqiyi.com/w/' + self.rid).text # 获取直播间的qipuId try: qipuid, = re.findall(r'"qipuId":(\d*?),"roomId', res) except ValueError: raise Exception('Incorrect rid.') callback = 'jsonp_' + str(int((time.time() * 1000))) + '_00...
""" 里面iqiyi.js是个加盐的md5,execjs执行后获取cmd5x的返回值 Returns: m3u8格式播放地址 Raises: incorrect rid: 请确实是爱奇艺直播房间号:爱奇艺有部分直播是来自pps的,要打开房间看链接是否有跳转,有则用pps.py Could not find an available JavaScript runtime: 是否安装了js环境 """ res = self.s.get('https://m-ga...
95
311
502
813
# 获取爱奇艺直播的真实流媒体地址。 # iqiyi.js是cmd5x加密函数 import json import re import time import urllib.parse import execjs import requests class IQiYi: """获取爱奇艺 m3u8 格式直播源 输入房间号,通常是数字,比如链接 https://gamelive.iqiyi.com/w/74429 中的 74429。 注意: 爱奇艺有部分直播是来自pps的,要打开房间看链接是否有跳转,有则用pps.py 爱奇艺直播依赖js环境,建议安装node.js。...
# 获取爱奇艺直播的真实流媒体地址。 # iqiyi.js是cmd5x加密函数 import json import re import time import urllib.parse import execjs import requests class IQiYi: """获取爱奇艺 m3u8 格式直播源 输入房间号,通常是数字,比如链接 https://gamelive.iqiyi.com/w/74429 中的 74429。 注意: 爱奇艺有部分直播是来自pps的,要打开房间看链接是否有跳转,有则用pps.py 爱奇艺直播依赖js环境,建议安装node.js。...
27,050
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/ixigua.py
26,27
1,38
get_real_url
27,35
27,35
# 获取西瓜直播的真实流媒体地址。 import requests import re class IXiGua: def __init__(self, rid): self.rid = rid def get_real_url(self): try: headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:83.0) Gecko/20100101 Firefox/83.0' } room_url ...
# 获取西瓜直播的真实流媒体地址。 import requests import re class IXiGua: def __init__(self, rid): self.rid = rid def get_real_url(self): try: headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:83.0) Gecko/20100101 Firefox/83.0' } room_url ...
try: xg = IXiGua(rid) return xg.get_real_url() except Exception as e: print('Exception:', e) return False
try: xg = IXiGua(rid) return xg.get_real_url() except Exception as e: print('Exception:', e) return False
14
314
59
373
# 获取西瓜直播的真实流媒体地址。 import requests import re class IXiGua: def __init__(self, rid): self.rid = rid def get_real_url(self): try: headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:83.0) Gecko/20100101 Firefox/83.0' } room_url ...
# 获取西瓜直播的真实流媒体地址。 import requests import re class IXiGua: def __init__(self, rid): self.rid = rid def get_real_url(self): try: headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:83.0) Gecko/20100101 Firefox/83.0' } room_url ...
27,051
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/ixigua.py
12,13
7,26
get_real_url
IXiGua
13,26
13,26
class IXiGua: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class IXiGua: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
try: headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:83.0) Gecko/20100101 Firefox/83.0' } room_url = 'https://live.ixigua.com/' + str(self.rid) response = requests.get(url=room_url, headers=headers).text real_url = re....
try: headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:83.0) Gecko/20100101 Firefox/83.0' } room_url = 'https://live.ixigua.com/' + str(self.rid) response = requests.get(url=room_url, headers=headers).text real_url = re....
37
47
207
254
# 获取西瓜直播的真实流媒体地址。 import requests import re class IXiGua: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: xg = IXiGua(rid) return xg.get_real_url() except Exception as e: print('Exception:', e) return ...
# 获取西瓜直播的真实流媒体地址。 import requests import re class IXiGua: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: xg = IXiGua(rid) return xg.get_real_url() except Exception as e: print('Exception:', e) return ...
27,052
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/jd.py
35,36
1,47
get_real_url
36,44
36,44
# 京东直播:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=1807004&position=0 import requests import json class JD: def __init__(self, rid): self.rid = rid def get_real_url(self): url = 'https://api.m.jd.com/client.action' params = { 'functionId': 'liveDeta...
# 京东直播:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=1807004&position=0 import requests import json class JD: def __init__(self, rid): self.rid = rid def get_real_url(self): url = 'https://api.m.jd.com/client.action' params = { 'functionId': 'liveDeta...
try: jd = JD(rid) return jd.get_real_url() except Exception as e: print('Exception:', e) return False
try: jd = JD(rid) return jd.get_real_url() except Exception as e: print('Exception:', e) return False
14
383
57
440
# 京东直播:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=1807004&position=0 import requests import json class JD: def __init__(self, rid): self.rid = rid def get_real_url(self): url = 'https://api.m.jd.com/client.action' params = { 'functionId': 'liveDeta...
# 京东直播:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=1807004&position=0 import requests import json class JD: def __init__(self, rid): self.rid = rid def get_real_url(self): url = 'https://api.m.jd.com/client.action' params = { 'functionId': 'liveDeta...
27,053
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/jd.py
12,13
7,35
get_real_url
JD
13,35
13,35
class JD: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class JD: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
url = 'https://api.m.jd.com/client.action' params = { 'functionId': 'liveDetail', 'body': json.dumps({'id': self.rid, 'videoType': 1}, separators=(',', ':')), 'client': 'wh5' } with requests.Session() as s: res = s.get(url, params=params).j...
url = 'https://api.m.jd.com/client.action' params = { 'functionId': 'liveDetail', 'body': json.dumps({'id': self.rid, 'videoType': 1}, separators=(',', ':')), 'client': 'wh5' } with requests.Session() as s: res = s.get(url, params=params).j...
57
45
241
286
# 京东直播:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=1807004&position=0 import requests import json class JD: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: jd = JD(rid) return jd.get_real_url() e...
# 京东直播:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=1807004&position=0 import requests import json class JD: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: jd = JD(rid) return jd.get_real_url() e...
27,054
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kbs.py
74,75
1,86
get_real_url
75,83
75,83
# -*- coding: utf-8 -*- # @Time: 2021/5/22 8:02 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import hashlib import time from urllib.parse import parse_qsl, urlsplit import requests class KBS: """ - 腾讯体育直播,看比赛频道 https://kbs.sports.qq.com/ - 直播间地址类似:https://sports.qq.com/kbsweb/game.htm?...
# -*- coding: utf-8 -*- # @Time: 2021/5/22 8:02 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import hashlib import time from urllib.parse import parse_qsl, urlsplit import requests class KBS: """ - 腾讯体育直播,看比赛频道 https://kbs.sports.qq.com/ - 直播间地址类似:https://sports.qq.com/kbsweb/game.htm?...
try: kbs = KBS(rid) return kbs.get_real_url() except Exception as e: print('Exception:', e) return False
try: kbs = KBS(rid) return kbs.get_real_url() except Exception as e: print('Exception:', e) return False
14
983
57
1,040
# -*- coding: utf-8 -*- # @Time: 2021/5/22 8:02 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import hashlib import time from urllib.parse import parse_qsl, urlsplit import requests class KBS: """ - 腾讯体育直播,看比赛频道 https://kbs.sports.qq.com/ - 直播间地址类似:https://sports.qq.com/kbsweb/game.htm?...
# -*- coding: utf-8 -*- # @Time: 2021/5/22 8:02 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import hashlib import time from urllib.parse import parse_qsl, urlsplit import requests class KBS: """ - 腾讯体育直播,看比赛频道 https://kbs.sports.qq.com/ - 直播间地址类似:https://sports.qq.com/kbsweb/game.htm?...
27,055
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kbs.py
31,32
14,74
get_real_url
KBS
32,74
32,74
class KBS: """ - 腾讯体育直播,看比赛频道 https://kbs.sports.qq.com/ - 直播间地址类似:https://sports.qq.com/kbsweb/game.htm?mid=100006:2337840,需要其中的mid - 只能获取免费观看的直播间 - 请求参数params中的defn:蓝光fhd、超清shd、高清hd、标清sd,未登陆时最高获取超清,蓝光需VIP。 """ def __init__(self, rid): var = dict(parse_qsl(urlsplit(rid).query)) ...
class KBS: """ - 腾讯体育直播,看比赛频道 https://kbs.sports.qq.com/ - 直播间地址类似:https://sports.qq.com/kbsweb/game.htm?mid=100006:2337840,需要其中的mid - 只能获取免费观看的直播间 - 请求参数params中的defn:蓝光fhd、超清shd、高清hd、标清sd,未登陆时最高获取超清,蓝光需VIP。 """ def __init__(self, rid): var = dict(parse_qsl(urlsplit(rid).query)) ...
tt = int(time.time()) week = int(time.strftime('%w')) s = ('06fc1464', '4244ce1b', '77de31c5', 'e0149fa2', '60394ced', '2da639f0', 'c2f0cf9f') ha = f'{s[week - 1]}{self.vid}{tt}*#06#40201' ckey = hashlib.md5(ha.encode('utf-8')).hexdigest() params = { 'cmd': 2,...
tt = int(time.time()) week = int(time.strftime('%w')) s = ('06fc1464', '4244ce1b', '77de31c5', 'e0149fa2', '60394ced', '2da639f0', 'c2f0cf9f') ha = f'{s[week - 1]}{self.vid}{tt}*#06#40201' ckey = hashlib.md5(ha.encode('utf-8')).hexdigest() params = { 'cmd': 2,...
105
278
604
882
# -*- coding: utf-8 -*- # @Time: 2021/5/22 8:02 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import hashlib import time from urllib.parse import parse_qsl, urlsplit import requests class KBS: """ - 腾讯体育直播,看比赛频道 https://kbs.sports.qq.com/ - 直播间地址类似:https://sports.qq.com/kbsweb/game.htm?...
# -*- coding: utf-8 -*- # @Time: 2021/5/22 8:02 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import hashlib import time from urllib.parse import parse_qsl, urlsplit import requests class KBS: """ - 腾讯体育直播,看比赛频道 https://kbs.sports.qq.com/ - 直播间地址类似:https://sports.qq.com/kbsweb/game.htm?...
27,056
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kk.py
34,35
1,46
get_real_url
35,43
35,43
# KK直播:http://www.kktv5.com/ import requests class KK: def __init__(self, rid): """ KK直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): url = 'https://sapi.kktv1.com/meShow/entrance?parameter={}' ...
# KK直播:http://www.kktv5.com/ import requests class KK: def __init__(self, rid): """ KK直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): url = 'https://sapi.kktv1.com/meShow/entrance?parameter={}' ...
try: kk = KK(rid) return kk.get_real_url() except Exception as e: print('Exception:', e) return False
try: kk = KK(rid) return kk.get_real_url() except Exception as e: print('Exception:', e) return False
14
413
57
470
# KK直播:http://www.kktv5.com/ import requests class KK: def __init__(self, rid): """ KK直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): url = 'https://sapi.kktv1.com/meShow/entrance?parameter={}' ...
# KK直播:http://www.kktv5.com/ import requests class KK: def __init__(self, rid): """ KK直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): url = 'https://sapi.kktv1.com/meShow/entrance?parameter={}' ...
27,057
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kk.py
16,17
5,34
get_real_url
KK
17,34
17,34
class KK: def __init__(self, rid): """ KK直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
class KK: def __init__(self, rid): """ KK直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
url = 'https://sapi.kktv1.com/meShow/entrance?parameter={}' parameter = {'FuncTag': 10005043, 'userId': f'{self.rid}', 'platform': 1, 'a': 1, 'c': 100101} res = self.s.get(url.format(parameter)).json() tagcode = res['TagCode'] if tagcode == '00000000': if res.get('liv...
url = 'https://sapi.kktv1.com/meShow/entrance?parameter={}' parameter = {'FuncTag': 10005043, 'userId': f'{self.rid}', 'platform': 1, 'a': 1, 'c': 100101} res = self.s.get(url.format(parameter)).json() tagcode = res['TagCode'] if tagcode == '00000000': if res.get('liv...
59
78
279
357
# KK直播:http://www.kktv5.com/ import requests class KK: def __init__(self, rid): """ KK直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: kk = KK(rid) ...
# KK直播:http://www.kktv5.com/ import requests class KK: def __init__(self, rid): """ KK直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: kk = KK(rid) ...
27,058
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kuaishou.py
33,34
1,46
get_real_url
34,42
34,42
# 获取快手直播的真实流媒体地址,默认输出最高画质 # https://live.kuaishou.com/u/KPL704668133 # 如获取失败,尝试修改 cookie 中的 did import json import re import requests class KuaiShou: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_...
# 获取快手直播的真实流媒体地址,默认输出最高画质 # https://live.kuaishou.com/u/KPL704668133 # 如获取失败,尝试修改 cookie 中的 did import json import re import requests class KuaiShou: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_...
try: ks = KuaiShou(rid) return ks.get_real_url() except Exception as e: print('Exception:', e) return False
try: ks = KuaiShou(rid) return ks.get_real_url() except Exception as e: print('Exception:', e) return False
14
479
60
539
# 获取快手直播的真实流媒体地址,默认输出最高画质 # https://live.kuaishou.com/u/KPL704668133 # 如获取失败,尝试修改 cookie 中的 did import json import re import requests class KuaiShou: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_...
# 获取快手直播的真实流媒体地址,默认输出最高画质 # https://live.kuaishou.com/u/KPL704668133 # 如获取失败,尝试修改 cookie 中的 did import json import re import requests class KuaiShou: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_...
27,059
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kuaishou.py
15,16
10,33
get_real_url
KuaiShou
16,33
16,33
class KuaiShou: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class KuaiShou: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
headers = { 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 ' '(KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1', 'cookie': 'did=web_d563dca728d28b00336877723e0359ed'} with requests.Session() as s: ...
headers = { 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 ' '(KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1', 'cookie': 'did=web_d563dca728d28b00336877723e0359ed'} with requests.Session() as s: ...
56
48
312
360
# 获取快手直播的真实流媒体地址,默认输出最高画质 # https://live.kuaishou.com/u/KPL704668133 # 如获取失败,尝试修改 cookie 中的 did import json import re import requests class KuaiShou: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: ks = KuaiShou(rid) retu...
# 获取快手直播的真实流媒体地址,默认输出最高画质 # https://live.kuaishou.com/u/KPL704668133 # 如获取失败,尝试修改 cookie 中的 did import json import re import requests class KuaiShou: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: ks = KuaiShou(rid) retu...
27,060
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kugou.py
58,59
1,70
get_real_url
59,67
59,67
# 获取酷狗繁星直播的真实流媒体地址,默认最高码率。 import requests class KuGou: def __init__(self, rid): """ 酷狗繁星直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() self.BASE_URL = 'https://fx1.service.kugou.com/video/mo/live/pull/h5/v3/streamaddr' d...
# 获取酷狗繁星直播的真实流媒体地址,默认最高码率。 import requests class KuGou: def __init__(self, rid): """ 酷狗繁星直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() self.BASE_URL = 'https://fx1.service.kugou.com/video/mo/live/pull/h5/v3/streamaddr' d...
try: kg = KuGou(rid) return kg.get_real_url() except Exception as e: print('Exception:', e) return False
try: kg = KuGou(rid) return kg.get_real_url() except Exception as e: print('Exception:', e) return False
14
700
57
757
# 获取酷狗繁星直播的真实流媒体地址,默认最高码率。 import requests class KuGou: def __init__(self, rid): """ 酷狗繁星直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() self.BASE_URL = 'https://fx1.service.kugou.com/video/mo/live/pull/h5/v3/streamaddr' d...
# 获取酷狗繁星直播的真实流媒体地址,默认最高码率。 import requests class KuGou: def __init__(self, rid): """ 酷狗繁星直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() self.BASE_URL = 'https://fx1.service.kugou.com/video/mo/live/pull/h5/v3/streamaddr' d...
27,061
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kugou.py
18,19
6,58
get_real_url
KuGou
19,58
19,58
class KuGou: def __init__(self, rid): """ 酷狗繁星直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() self.BASE_URL = 'https://fx1.service.kugou.com/video/mo/live/pull/h5/v3/streamaddr' def get_real_url(self): FILL_FUNC_BODY
class KuGou: def __init__(self, rid): """ 酷狗繁星直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() self.BASE_URL = 'https://fx1.service.kugou.com/video/mo/live/pull/h5/v3/streamaddr' def get_real_url(self): FILL_FUNC_BODY
params = { 'roomId': self.rid, 'platform': 18, 'version': 1000, 'streamType': '3-6', 'liveType': 1, 'ch': 'fx', 'ua': 'fx-mobile-h5', 'kugouId': 0, 'layout': 1 } try: res = sel...
params = { 'roomId': self.rid, 'platform': 18, 'version': 1000, 'streamType': '3-6', 'liveType': 1, 'ch': 'fx', 'ua': 'fx-mobile-h5', 'kugouId': 0, 'layout': 1 } try: res = sel...
86
122
539
661
# 获取酷狗繁星直播的真实流媒体地址,默认最高码率。 import requests class KuGou: def __init__(self, rid): """ 酷狗繁星直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() self.BASE_URL = 'https://fx1.service.kugou.com/video/mo/live/pull/h5/v3/streamaddr' d...
# 获取酷狗繁星直播的真实流媒体地址,默认最高码率。 import requests class KuGou: def __init__(self, rid): """ 酷狗繁星直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() self.BASE_URL = 'https://fx1.service.kugou.com/video/mo/live/pull/h5/v3/streamaddr' d...
27,062
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kuwo.py
44,45
1,56
get_real_url
45,53
45,53
# 酷我聚星直播:http://jx.kuwo.cn/ import requests import re class KuWo: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://jxm0.kuwo.cn/video/mo/live/pull/h5/v3/streamaddr' self.s = requests.Session() def get_real_url(self): res = self.s.get(f'https://jx.kuwo.cn/{sel...
# 酷我聚星直播:http://jx.kuwo.cn/ import requests import re class KuWo: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://jxm0.kuwo.cn/video/mo/live/pull/h5/v3/streamaddr' self.s = requests.Session() def get_real_url(self): res = self.s.get(f'https://jx.kuwo.cn/{sel...
try: kw = KuWo(rid) return kw.get_real_url() except Exception as e: print('Exception:', e) return False
try: kw = KuWo(rid) return kw.get_real_url() except Exception as e: print('Exception:', e) return False
14
496
59
555
# 酷我聚星直播:http://jx.kuwo.cn/ import requests import re class KuWo: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://jxm0.kuwo.cn/video/mo/live/pull/h5/v3/streamaddr' self.s = requests.Session() def get_real_url(self): res = self.s.get(f'https://jx.kuwo.cn/{sel...
# 酷我聚星直播:http://jx.kuwo.cn/ import requests import re class KuWo: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://jxm0.kuwo.cn/video/mo/live/pull/h5/v3/streamaddr' self.s = requests.Session() def get_real_url(self): res = self.s.get(f'https://jx.kuwo.cn/{sel...
27,063
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/kuwo.py
14,15
7,44
get_real_url
KuWo
15,44
15,44
class KuWo: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://jxm0.kuwo.cn/video/mo/live/pull/h5/v3/streamaddr' self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
class KuWo: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://jxm0.kuwo.cn/video/mo/live/pull/h5/v3/streamaddr' self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
res = self.s.get(f'https://jx.kuwo.cn/{self.rid}').text roomid = re.search(r"roomId: '(\d*)'", res) if roomid: self.rid = roomid.group(1) else: raise Exception('未开播或房间号错误') params = { 'std_bid': 1, 'roomId': self.rid, 'p...
res = self.s.get(f'https://jx.kuwo.cn/{self.rid}').text roomid = re.search(r"roomId: '(\d*)'", res) if roomid: self.rid = roomid.group(1) else: raise Exception('未开播或房间号错误') params = { 'std_bid': 1, 'roomId': self.rid, 'p...
64
95
349
444
# 酷我聚星直播:http://jx.kuwo.cn/ import requests import re class KuWo: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://jxm0.kuwo.cn/video/mo/live/pull/h5/v3/streamaddr' self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: ...
# 酷我聚星直播:http://jx.kuwo.cn/ import requests import re class KuWo: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://jxm0.kuwo.cn/video/mo/live/pull/h5/v3/streamaddr' self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: ...
27,064
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/laifeng.py
35,36
1,47
get_real_url
36,44
36,44
# 获取来疯直播的真实流媒体地址。 # 来疯直播就是优酷直播的个人主播频道,不同于优酷直播下的轮播台和体育直播。 # 来疯直播间链接形式:https://v.laifeng.com/8032155 import requests import re class LaiFeng: def __init__(self, rid): """ 来疯直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_rea...
# 获取来疯直播的真实流媒体地址。 # 来疯直播就是优酷直播的个人主播频道,不同于优酷直播下的轮播台和体育直播。 # 来疯直播间链接形式:https://v.laifeng.com/8032155 import requests import re class LaiFeng: def __init__(self, rid): """ 来疯直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_rea...
try: lf = LaiFeng(rid) return lf.get_real_url() except Exception as e: print('Exception:', e) return False
try: lf = LaiFeng(rid) return lf.get_real_url() except Exception as e: print('Exception:', e) return False
14
441
59
500
# 获取来疯直播的真实流媒体地址。 # 来疯直播就是优酷直播的个人主播频道,不同于优酷直播下的轮播台和体育直播。 # 来疯直播间链接形式:https://v.laifeng.com/8032155 import requests import re class LaiFeng: def __init__(self, rid): """ 来疯直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_rea...
# 获取来疯直播的真实流媒体地址。 # 来疯直播就是优酷直播的个人主播频道,不同于优酷直播下的轮播台和体育直播。 # 来疯直播间链接形式:https://v.laifeng.com/8032155 import requests import re class LaiFeng: def __init__(self, rid): """ 来疯直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_rea...
27,065
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/laifeng.py
20,21
9,35
get_real_url
LaiFeng
21,35
21,35
class LaiFeng: def __init__(self, rid): """ 来疯直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
class LaiFeng: def __init__(self, rid): """ 来疯直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
try: response_main = self.s.get(f'http://v.laifeng.com/{self.rid}/m').text stream_name = re.search(r"initAlias:'(.*)?'", response_main).group(1) real_url = {} for stream_format in ['HttpFlv', 'Hls']: request_url = f'https://lapi.lcloud.laifeng.com/...
try: response_main = self.s.get(f'http://v.laifeng.com/{self.rid}/m').text stream_name = re.search(r"initAlias:'(.*)?'", response_main).group(1) real_url = {} for stream_format in ['HttpFlv', 'Hls']: request_url = f'https://lapi.lcloud.laifeng.com/...
33
81
242
323
# 获取来疯直播的真实流媒体地址。 # 来疯直播就是优酷直播的个人主播频道,不同于优酷直播下的轮播台和体育直播。 # 来疯直播间链接形式:https://v.laifeng.com/8032155 import requests import re class LaiFeng: def __init__(self, rid): """ 来疯直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_rea...
# 获取来疯直播的真实流媒体地址。 # 来疯直播就是优酷直播的个人主播频道,不同于优酷直播下的轮播台和体育直播。 # 来疯直播间链接形式:https://v.laifeng.com/8032155 import requests import re class LaiFeng: def __init__(self, rid): """ 来疯直播 Args: rid: 房间号 """ self.rid = rid self.s = requests.Session() def get_rea...
27,066
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/lehai.py
43,44
1,55
get_real_url
44,52
44,52
# 乐嗨直播:https://www.lehaitv.com/ from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib class LeHai: def __init__(self, rid): self.rid = rid def get_real_url(self): url = f'https://service.lehaitv.com/v2/room/{self.rid}/media/advanceInf...
# 乐嗨直播:https://www.lehaitv.com/ from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib class LeHai: def __init__(self, rid): self.rid = rid def get_real_url(self): url = f'https://service.lehaitv.com/v2/room/{self.rid}/media/advanceInf...
try: lh = LeHai(rid) return lh.get_real_url() except Exception as e: print('Exception:', e) return False
try: lh = LeHai(rid) return lh.get_real_url() except Exception as e: print('Exception:', e) return False
14
523
58
581
# 乐嗨直播:https://www.lehaitv.com/ from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib class LeHai: def __init__(self, rid): self.rid = rid def get_real_url(self): url = f'https://service.lehaitv.com/v2/room/{self.rid}/media/advanceInf...
# 乐嗨直播:https://www.lehaitv.com/ from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib class LeHai: def __init__(self, rid): self.rid = rid def get_real_url(self): url = f'https://service.lehaitv.com/v2/room/{self.rid}/media/advanceInf...
27,067
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/lehai.py
15,16
10,43
get_real_url
LeHai
16,43
16,43
class LeHai: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class LeHai: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
url = f'https://service.lehaitv.com/v2/room/{self.rid}/media/advanceInfoRoom' params = { '_st1': int(time.time() * 1e3), 'accessToken': 's7FUbTJ%2BjILrR7kicJUg8qr025ZVjd07DAnUQd8c7g%2Fo4OH9pdSX6w%3D%3D', 'tku': 3000006, } data = urlencode(params) + '1e...
url = f'https://service.lehaitv.com/v2/room/{self.rid}/media/advanceInfoRoom' params = { '_st1': int(time.time() * 1e3), 'accessToken': 's7FUbTJ%2BjILrR7kicJUg8qr025ZVjd07DAnUQd8c7g%2Fo4OH9pdSX6w%3D%3D', 'tku': 3000006, } data = urlencode(params) + '1e...
71
46
400
446
# 乐嗨直播:https://www.lehaitv.com/ from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib class LeHai: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: lh = LeHai(rid) r...
# 乐嗨直播:https://www.lehaitv.com/ from urllib.parse import urlencode from urllib.parse import unquote import requests import time import hashlib class LeHai: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: lh = LeHai(rid) r...
27,068
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/liveu.py
23,24
1,35
get_real_url
24,32
24,32
# -*- 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/w...
# -*- 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/w...
try: url = liveU(rid) return url.get_real_url() except Exception as e: print('Exception:', e) return False
try: url = liveU(rid) return url.get_real_url() except Exception as e: print('Exception:', e) return False
14
266
55
321
# -*- 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/w...
# -*- 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/w...
27,069
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/liveu.py
15,16
10,23
get_real_url
liveU
16,23
16,23
class liveU: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class liveU: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
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
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
21
45
108
153
# -*- 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): FILL_FUNC_BODYdef get_real_url(rid): try: url = liveU(rid) return url.ge...
# -*- 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): FILL_FUNC_BODYdef get_real_url(rid): try: url = liveU(rid) return url.ge...
27,070
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/longzhu.py
30,31
1,42
get_real_url
31,39
31,39
# 获取龙珠直播的真实流媒体地址,默认最高码率。 import requests import re class LongZhu: def __init__(self, rid): """ 龙珠直播,获取hls格式的播放地址 Args: rid: 直播房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): try: res = self.s.get(f'ht...
# 获取龙珠直播的真实流媒体地址,默认最高码率。 import requests import re class LongZhu: def __init__(self, rid): """ 龙珠直播,获取hls格式的播放地址 Args: rid: 直播房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): try: res = self.s.get(f'ht...
try: lz = LongZhu(rid) return lz.get_real_url() except Exception as e: print('Exception:', e) return False
try: lz = LongZhu(rid) return lz.get_real_url() except Exception as e: print('Exception:', e) return False
14
344
58
402
# 获取龙珠直播的真实流媒体地址,默认最高码率。 import requests import re class LongZhu: def __init__(self, rid): """ 龙珠直播,获取hls格式的播放地址 Args: rid: 直播房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): try: res = self.s.get(f'ht...
# 获取龙珠直播的真实流媒体地址,默认最高码率。 import requests import re class LongZhu: def __init__(self, rid): """ 龙珠直播,获取hls格式的播放地址 Args: rid: 直播房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): try: res = self.s.get(f'ht...
27,071
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/longzhu.py
18,19
7,30
get_real_url
LongZhu
19,30
19,30
class LongZhu: def __init__(self, rid): """ 龙珠直播,获取hls格式的播放地址 Args: rid: 直播房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
class LongZhu: def __init__(self, rid): """ 龙珠直播,获取hls格式的播放地址 Args: rid: 直播房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
try: res = self.s.get(f'http://star.longzhu.com/{self.rid}').text roomId = re.search(r'roomid":(\d+)', res).group(1) res = self.s.get(f'http://livestream.longzhu.com/live/getlivePlayurl?roomId={roomId}&utmSr=&platform=h5' f'&device=ios').json() ...
try: res = self.s.get(f'http://star.longzhu.com/{self.rid}').text roomId = re.search(r'roomid":(\d+)', res).group(1) res = self.s.get(f'http://livestream.longzhu.com/live/getlivePlayurl?roomId={roomId}&utmSr=&platform=h5' f'&device=ios').json() ...
21
90
186
276
# 获取龙珠直播的真实流媒体地址,默认最高码率。 import requests import re class LongZhu: def __init__(self, rid): """ 龙珠直播,获取hls格式的播放地址 Args: rid: 直播房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: ...
# 获取龙珠直播的真实流媒体地址,默认最高码率。 import requests import re class LongZhu: def __init__(self, rid): """ 龙珠直播,获取hls格式的播放地址 Args: rid: 直播房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: ...
27,072
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/look.py
94,95
1,106
get_real_url
95,103
95,103
# 获取网易云音乐旗下look直播的真实流媒体地址。 # look直播间链接形式:https://look.163.com/live?id=73694082 # 以下核心加密解密算法来自:https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/MusicPlayer/apis/netEaseEncode.py # 分析过程可参看 https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/doc/analysis/analyze_captured_data.md # 加密参数相关。 # 具体http://s3.music.126....
# 获取网易云音乐旗下look直播的真实流媒体地址。 # look直播间链接形式:https://look.163.com/live?id=73694082 # 以下核心加密解密算法来自:https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/MusicPlayer/apis/netEaseEncode.py # 分析过程可参看 https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/doc/analysis/analyze_captured_data.md # 加密参数相关。 # 具体http://s3.music.126....
try: look = Look(rid) return look.get_real_url() except Exception as e: print('Exception:', e) return False
try: look = Look(rid) return look.get_real_url() except Exception as e: print('Exception:', e) return False
14
1,462
54
1,516
# 获取网易云音乐旗下look直播的真实流媒体地址。 # look直播间链接形式:https://look.163.com/live?id=73694082 # 以下核心加密解密算法来自:https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/MusicPlayer/apis/netEaseEncode.py # 分析过程可参看 https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/doc/analysis/analyze_captured_data.md # 加密参数相关。 # 具体http://s3.music.126....
# 获取网易云音乐旗下look直播的真实流媒体地址。 # look直播间链接形式:https://look.163.com/live?id=73694082 # 以下核心加密解密算法来自:https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/MusicPlayer/apis/netEaseEncode.py # 分析过程可参看 https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/doc/analysis/analyze_captured_data.md # 加密参数相关。 # 具体http://s3.music.126....
27,073
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/look.py
84,85
79,94
get_real_url
Look
85,94
85,94
class Look: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class Look: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
try: request_data = encrypted_request({"liveRoomNo": self.rid}) response = requests.post(url='https://api.look.163.com/weapi/livestream/room/get/v3', data=request_data) real_url = response.json()['data']['roomInfo']['liveUrl'] except Exception: raise Excep...
try: request_data = encrypted_request({"liveRoomNo": self.rid}) response = requests.post(url='https://api.look.163.com/weapi/livestream/room/get/v3', data=request_data) real_url = response.json()['data']['roomInfo']['liveUrl'] except Exception: raise Excep...
18
44
123
167
# 获取网易云音乐旗下look直播的真实流媒体地址。 # look直播间链接形式:https://look.163.com/live?id=73694082 # 以下核心加密解密算法来自:https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/MusicPlayer/apis/netEaseEncode.py # 分析过程可参看 https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/doc/analysis/analyze_captured_data.md # 加密参数相关。 # 具体http://s3.music.126....
# 获取网易云音乐旗下look直播的真实流媒体地址。 # look直播间链接形式:https://look.163.com/live?id=73694082 # 以下核心加密解密算法来自:https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/MusicPlayer/apis/netEaseEncode.py # 分析过程可参看 https://github.com/Qinjiaxin/MusicBox/blob/b8f716d43d/doc/analysis/analyze_captured_data.md # 加密参数相关。 # 具体http://s3.music.126....
27,074
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/maoer.py
36,37
1,48
get_real_url
37,45
37,45
# -*- coding: utf-8 -*- # @Time: 2021/5/1 13:03 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class MAOER: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS ...
# -*- coding: utf-8 -*- # @Time: 2021/5/1 13:03 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class MAOER: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS ...
try: mr = MAOER(rid) return mr.get_real_url() except Exception as e: print('Exception:', e) return False
try: mr = MAOER(rid) return mr.get_real_url() except Exception as e: print('Exception:', e) return False
14
385
58
443
# -*- coding: utf-8 -*- # @Time: 2021/5/1 13:03 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class MAOER: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS ...
# -*- coding: utf-8 -*- # @Time: 2021/5/1 13:03 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class MAOER: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS ...
27,075
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/maoer.py
17,18
12,36
get_real_url
MAOER
18,36
18,36
class MAOER: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class MAOER: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 ' } url = 'https://fm.missevan.com/api/v2/live/{}'.format(self.rid) with request...
headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 ' } url = 'https://fm.missevan.com/api/v2/live/{}'.format(self.rid) with request...
55
46
234
280
# -*- coding: utf-8 -*- # @Time: 2021/5/1 13:03 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class MAOER: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: mr = MAOER(rid) retu...
# -*- coding: utf-8 -*- # @Time: 2021/5/1 13:03 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import json import requests class MAOER: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: mr = MAOER(rid) retu...
27,076
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/migu.py
104,105
1,116
get_real_url
105,113
105,113
# -*- coding: utf-8 -*- # @Time: 2021/11/6 10:51 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import requests from urllib import parse class MiGu: """ 获取咪咕体育直播的流媒体地址 直播列表:https://www.miguvideo.com/mgs/website/prd/sportMatchDetail.html 直播间地址形式:https://www.miguvideo.com/mgs/website/pr...
# -*- coding: utf-8 -*- # @Time: 2021/11/6 10:51 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import requests from urllib import parse class MiGu: """ 获取咪咕体育直播的流媒体地址 直播列表:https://www.miguvideo.com/mgs/website/prd/sportMatchDetail.html 直播间地址形式:https://www.miguvideo.com/mgs/website/pr...
try: mg = MiGu(rid) return mg.get_real_url() except Exception as e: print('Exception:', e) return False
try: mg = MiGu(rid) return mg.get_real_url() except Exception as e: print('Exception:', e) return False
14
1,206
55
1,261
# -*- coding: utf-8 -*- # @Time: 2021/11/6 10:51 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import requests from urllib import parse class MiGu: """ 获取咪咕体育直播的流媒体地址 直播列表:https://www.miguvideo.com/mgs/website/prd/sportMatchDetail.html 直播间地址形式:https://www.miguvideo.com/mgs/website/pr...
# -*- coding: utf-8 -*- # @Time: 2021/11/6 10:51 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import requests from urllib import parse class MiGu: """ 获取咪咕体育直播的流媒体地址 直播列表:https://www.miguvideo.com/mgs/website/prd/sportMatchDetail.html 直播间地址形式:https://www.miguvideo.com/mgs/website/pr...
27,077
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/migu.py
63,65
11,104
calcu
MiGu
74,104
65,104
class MiGu: """ 获取咪咕体育直播的流媒体地址 直播列表:https://www.miguvideo.com/mgs/website/prd/sportMatchDetail.html 直播间地址形式:https://www.miguvideo.com/mgs/website/prd/sportLive.html?mgdbId=120000173758 mgdbId 120000173758即为房间号 """ def __init__(self, rid, rate=3): """ Args: rate:估...
class MiGu: """ 获取咪咕体育直播的流媒体地址 直播列表:https://www.miguvideo.com/mgs/website/prd/sportMatchDetail.html 直播间地址形式:https://www.miguvideo.com/mgs/website/prd/sportLive.html?mgdbId=120000173758 mgdbId 120000173758即为房间号 """ def __init__(self, rid, rate=3): """ Args: rate:估...
params = dict(parse.parse_qsl(pre_url.split('?')[-1])) t = 'eeeeeeeee' r = str(params['timestamp']) n = str(params['ProgramID']) a = params['Channel_ID'] o = params['puData'] # s = '2624' # js里是遍历s,这里直接写死 u = t[2] or 'e' ll = r[6] or 't' ...
""" 计算ddCalcu,原始过程在pcPlayer.js的9432行到9460行。 这里直接用python代码还原,其实可以简化。 Args: pre_url:playurl请求返回的url用来拼接计算ddCalcu Returns: real_url:添加ddCalcu后的播放地址 """ params = dict(parse.parse_qsl(pre_url.split('?')[-1])) t = 'eeeeeeeee' r =...
107
754
352
1,106
# -*- coding: utf-8 -*- # @Time: 2021/11/6 10:51 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import requests from urllib import parse class MiGu: """ 获取咪咕体育直播的流媒体地址 直播列表:https://www.miguvideo.com/mgs/website/prd/sportMatchDetail.html 直播间地址形式:https://www.miguvideo.com/mgs/website/pr...
# -*- coding: utf-8 -*- # @Time: 2021/11/6 10:51 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import requests from urllib import parse class MiGu: """ 获取咪咕体育直播的流媒体地址 直播列表:https://www.miguvideo.com/mgs/website/prd/sportMatchDetail.html 直播间地址形式:https://www.miguvideo.com/mgs/website/pr...
27,078
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/now.py
26,27
1,38
get_real_url
27,35
27,35
# 获取NOW直播的真实流媒体地址。 import requests class Now: def __init__(self, rid): self.rid = rid def get_real_url(self): try: room_url = f'https://now.qq.com/cgi-bin/now/web/room/get_live_room_url?room_id={self.rid}&platform=8' response = requests.get(url=room_url).json() ...
# 获取NOW直播的真实流媒体地址。 import requests class Now: def __init__(self, rid): self.rid = rid def get_real_url(self): try: room_url = f'https://now.qq.com/cgi-bin/now/web/room/get_live_room_url?room_id={self.rid}&platform=8' response = requests.get(url=room_url).json() ...
try: now = Now(rid) return now.get_real_url() except Exception as e: print('Exception:', e) return False
try: now = Now(rid) return now.get_real_url() except Exception as e: print('Exception:', e) return False
14
301
54
355
# 获取NOW直播的真实流媒体地址。 import requests class Now: def __init__(self, rid): self.rid = rid def get_real_url(self): try: room_url = f'https://now.qq.com/cgi-bin/now/web/room/get_live_room_url?room_id={self.rid}&platform=8' response = requests.get(url=room_url).json() ...
# 获取NOW直播的真实流媒体地址。 import requests class Now: def __init__(self, rid): self.rid = rid def get_real_url(self): try: room_url = f'https://now.qq.com/cgi-bin/now/web/room/get_live_room_url?room_id={self.rid}&platform=8' response = requests.get(url=room_url).json() ...
27,079
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/now.py
11,12
6,26
get_real_url
Now
12,26
12,26
class Now: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class Now: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
try: room_url = f'https://now.qq.com/cgi-bin/now/web/room/get_live_room_url?room_id={self.rid}&platform=8' response = requests.get(url=room_url).json() result = response.get('result') real_url = { 'raw_hls_url': result.get('raw_hls_url', 0), ...
try: room_url = f'https://now.qq.com/cgi-bin/now/web/room/get_live_room_url?room_id={self.rid}&platform=8' response = requests.get(url=room_url).json() result = response.get('result') real_url = { 'raw_hls_url': result.get('raw_hls_url', 0), ...
29
44
201
245
# 获取NOW直播的真实流媒体地址。 import requests class Now: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: now = Now(rid) return now.get_real_url() except Exception as e: print('Exception:', e) return False if __...
# 获取NOW直播的真实流媒体地址。 import requests class Now: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: now = Now(rid) return now.get_real_url() except Exception as e: print('Exception:', e) return False if __...
27,080
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/pps.py
46,47
1,58
get_real_url
47,55
47,55
# 获取PPS奇秀直播的真实流媒体地址。 import requests import re import time class PPS: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://m-x.pps.tv/api/stream/getH5' self.s = requests.Session() def get_real_url(self): headers = { 'Content-Type': 'application/x-www-...
# 获取PPS奇秀直播的真实流媒体地址。 import requests import re import time class PPS: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://m-x.pps.tv/api/stream/getH5' self.s = requests.Session() def get_real_url(self): headers = { 'Content-Type': 'application/x-www-...
try: pps = PPS(rid) return pps.get_real_url() except Exception as e: print('Exception:', e) return False
try: pps = PPS(rid) return pps.get_real_url() except Exception as e: print('Exception:', e) return False
14
591
57
648
# 获取PPS奇秀直播的真实流媒体地址。 import requests import re import time class PPS: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://m-x.pps.tv/api/stream/getH5' self.s = requests.Session() def get_real_url(self): headers = { 'Content-Type': 'application/x-www-...
# 获取PPS奇秀直播的真实流媒体地址。 import requests import re import time class PPS: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://m-x.pps.tv/api/stream/getH5' self.s = requests.Session() def get_real_url(self): headers = { 'Content-Type': 'application/x-www-...
27,081
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/pps.py
15,16
8,46
get_real_url
PPS
16,46
16,46
class PPS: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://m-x.pps.tv/api/stream/getH5' self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
class PPS: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://m-x.pps.tv/api/stream/getH5' self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 'Referer': 'https://m-x.p...
headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 'Referer': 'https://m-x.p...
82
83
460
543
# 获取PPS奇秀直播的真实流媒体地址。 import requests import re import time class PPS: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://m-x.pps.tv/api/stream/getH5' self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: pps = PPS(rid...
# 获取PPS奇秀直播的真实流媒体地址。 import requests import re import time class PPS: def __init__(self, rid): self.rid = rid self.BASE_URL = 'https://m-x.pps.tv/api/stream/getH5' self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: pps = PPS(rid...
27,083
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/ppsport.py
125,126
86,198
get_real_url
PPSport
130,198
126,198
class PPSport: """ 链接样式:http://sports.pptv.com/sportslive/pg_h5live?sectionid=184978 - liveFlag=1 正在直播 - liveFlag=2 没有直播,有录像集锦 - liveFlag 为空,没有录像 非VIP最高获取1280P """ def __init__(self, rid): # 拆分sectionid var = dict(parse_qsl(urlsplit(rid).query)) sectionid = ...
class PPSport: """ 链接样式:http://sports.pptv.com/sportslive/pg_h5live?sectionid=184978 - liveFlag=1 正在直播 - liveFlag=2 没有直播,有录像集锦 - liveFlag 为空,没有录像 非VIP最高获取1280P """ def __init__(self, rid): # 拆分sectionid var = dict(parse_qsl(urlsplit(rid).query)) sectionid = ...
params = { 'type': 'mhpptv', 'appId': 'pptv.web.h5', 'appPlt': 'web', 'appVer': '1.0.4', 'channel': 'sn.cultural', 'sdkVer': '1.5.0', 'cid': self.cid, 'allowFt': '0,1,2,3', 'rf': 0, 'ppi': '30...
""" PPSport原网页中会把下面的params加密后再发送请求,用上面的encrypt,这里请求参数不加密也可以 :return:url """ params = { 'type': 'mhpptv', 'appId': 'pptv.web.h5', 'appPlt': 'web', 'appVer': '1.0.4', 'channel': 'sn.cultural', 'sdkVer': '1.5.0'...
185
469
1,086
1,555
# -*- coding: utf-8 -*- # @Time: 2021/5/4 15:11 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import base64 import binascii from urllib.parse import parse_qsl, urlsplit, urlencode import requests from Crypto.Cipher import AES, DES3 from Crypto.Cipher import PKCS1_v1_5 from Crypto.Hash import SHA256 f...
# -*- coding: utf-8 -*- # @Time: 2021/5/4 15:11 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import base64 import binascii from urllib.parse import parse_qsl, urlsplit, urlencode import requests from Crypto.Cipher import AES, DES3 from Crypto.Cipher import PKCS1_v1_5 from Crypto.Hash import SHA256 f...
27,084
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/qf.py
33,34
1,45
get_real_url
34,42
34,42
# 获取56千帆直播的真实流媒体地址。 # 千帆直播直播间链接形式:https://qf.56.com/520686 import requests import re class QF: def __init__(self, rid): """ 搜狐千帆直播可以直接在网页源码里找到播放地址 Args: rid: 数字直播间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): try...
# 获取56千帆直播的真实流媒体地址。 # 千帆直播直播间链接形式:https://qf.56.com/520686 import requests import re class QF: def __init__(self, rid): """ 搜狐千帆直播可以直接在网页源码里找到播放地址 Args: rid: 数字直播间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): try...
try: qf = QF(rid) return qf.get_real_url() except Exception as e: print('Exception:', e) return False
try: qf = QF(rid) return qf.get_real_url() except Exception as e: print('Exception:', e) return False
14
341
57
398
# 获取56千帆直播的真实流媒体地址。 # 千帆直播直播间链接形式:https://qf.56.com/520686 import requests import re class QF: def __init__(self, rid): """ 搜狐千帆直播可以直接在网页源码里找到播放地址 Args: rid: 数字直播间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): try...
# 获取56千帆直播的真实流媒体地址。 # 千帆直播直播间链接形式:https://qf.56.com/520686 import requests import re class QF: def __init__(self, rid): """ 搜狐千帆直播可以直接在网页源码里找到播放地址 Args: rid: 数字直播间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): try...
27,085
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/qf.py
19,20
8,33
get_real_url
QF
20,33
20,33
class QF: def __init__(self, rid): """ 搜狐千帆直播可以直接在网页源码里找到播放地址 Args: rid: 数字直播间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
class QF: def __init__(self, rid): """ 搜狐千帆直播可以直接在网页源码里找到播放地址 Args: rid: 数字直播间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
try: res = self.s.get(f'https://qf.56.com/{self.rid}').text flvurl = re.search(r"flvUrl:'(.*)?'", res).group(1) if 'flv' in flvurl: real_url = flvurl else: res = self.s.get(flvurl).json() real_url = res['url'] ...
try: res = self.s.get(f'https://qf.56.com/{self.rid}').text flvurl = re.search(r"flvUrl:'(.*)?'", res).group(1) if 'flv' in flvurl: real_url = flvurl else: res = self.s.get(flvurl).json() real_url = res['url'] ...
28
97
150
247
# 获取56千帆直播的真实流媒体地址。 # 千帆直播直播间链接形式:https://qf.56.com/520686 import requests import re class QF: def __init__(self, rid): """ 搜狐千帆直播可以直接在网页源码里找到播放地址 Args: rid: 数字直播间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_B...
# 获取56千帆直播的真实流媒体地址。 # 千帆直播直播间链接形式:https://qf.56.com/520686 import requests import re class QF: def __init__(self, rid): """ 搜狐千帆直播可以直接在网页源码里找到播放地址 Args: rid: 数字直播间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_B...
27,086
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/qie.py
26,27
1,38
get_real_url
27,35
27,35
# 企鹅体育:https://live.qq.com/directory/all import requests import re class ESport: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://m.live.qq.com/{self.rid}') show_status = re.search(r'"show_status":"(\d)"'...
# 企鹅体育:https://live.qq.com/directory/all import requests import re class ESport: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://m.live.qq.com/{self.rid}') show_status = re.search(r'"show_status":"(\d)"'...
try: es = ESport(rid) return es.get_real_url() except Exception as e: print('Exception:', e) return False
try: es = ESport(rid) return es.get_real_url() except Exception as e: print('Exception:', e) return False
14
280
55
335
# 企鹅体育:https://live.qq.com/directory/all import requests import re class ESport: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://m.live.qq.com/{self.rid}') show_status = re.search(r'"show_status":"(\d)"'...
# 企鹅体育:https://live.qq.com/directory/all import requests import re class ESport: def __init__(self, rid): self.rid = rid def get_real_url(self): with requests.Session() as s: res = s.get(f'https://m.live.qq.com/{self.rid}') show_status = re.search(r'"show_status":"(\d)"'...
27,087
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/qie.py
12,13
7,26
get_real_url
ESport
13,26
13,26
class ESport: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class ESport: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
with requests.Session() as s: res = s.get(f'https://m.live.qq.com/{self.rid}') show_status = re.search(r'"show_status":"(\d)"', res.text) if show_status: if show_status.group(1) == '1': hls_url = re.search(r'"hls_url":"(.*)","use_p2p"', res.text).group(1) ...
with requests.Session() as s: res = s.get(f'https://m.live.qq.com/{self.rid}') show_status = re.search(r'"show_status":"(\d)"', res.text) if show_status: if show_status.group(1) == '1': hls_url = re.search(r'"hls_url":"(.*)","use_p2p"', res.text).group(1) ...
29
45
166
211
# 企鹅体育:https://live.qq.com/directory/all import requests import re class ESport: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: es = ESport(rid) return es.get_real_url() except Exception as e: print('Exceptio...
# 企鹅体育:https://live.qq.com/directory/all import requests import re class ESport: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: es = ESport(rid) return es.get_real_url() except Exception as e: print('Exceptio...
27,088
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/renren.py
29,30
1,41
get_real_url
30,38
30,38
# 人人直播:http://zhibo.renren.com/ import requests import re class RenRen: def __init__(self, rid): """ 直播间地址形式:http://activity.renren.com/live/liveroom/970302934_21348 rid即970302934_21348 Args: rid:房间号 """ self.rid = rid self.s = requests.Session...
# 人人直播:http://zhibo.renren.com/ import requests import re class RenRen: def __init__(self, rid): """ 直播间地址形式:http://activity.renren.com/live/liveroom/970302934_21348 rid即970302934_21348 Args: rid:房间号 """ self.rid = rid self.s = requests.Session...
try: rr = RenRen(rid) return rr.get_real_url() except Exception as e: print('Exception:', e) return False
try: rr = RenRen(rid) return rr.get_real_url() except Exception as e: print('Exception:', e) return False
14
299
58
357
# 人人直播:http://zhibo.renren.com/ import requests import re class RenRen: def __init__(self, rid): """ 直播间地址形式:http://activity.renren.com/live/liveroom/970302934_21348 rid即970302934_21348 Args: rid:房间号 """ self.rid = rid self.s = requests.Session...
# 人人直播:http://zhibo.renren.com/ import requests import re class RenRen: def __init__(self, rid): """ 直播间地址形式:http://activity.renren.com/live/liveroom/970302934_21348 rid即970302934_21348 Args: rid:房间号 """ self.rid = rid self.s = requests.Session...
27,089
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/renren.py
19,20
7,29
get_real_url
RenRen
20,29
20,29
class RenRen: def __init__(self, rid): """ 直播间地址形式:http://activity.renren.com/live/liveroom/970302934_21348 rid即970302934_21348 Args: rid:房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
class RenRen: def __init__(self, rid): """ 直播间地址形式:http://activity.renren.com/live/liveroom/970302934_21348 rid即970302934_21348 Args: rid:房间号 """ self.rid = rid self.s = requests.Session() def get_real_url(self): FILL_FUNC_BODY
res = self.s.get(f'http://activity.renren.com/live/liveroom/{self.rid}').text try: s = re.search(r'playUrl":"(.*?)"', res) play_url = s.group(1) return play_url except Exception: raise Exception('解析错误')
res = self.s.get(f'http://activity.renren.com/live/liveroom/{self.rid}').text try: s = re.search(r'playUrl":"(.*?)"', res) play_url = s.group(1) return play_url except Exception: raise Exception('解析错误')
17
130
99
229
# 人人直播:http://zhibo.renren.com/ import requests import re class RenRen: def __init__(self, rid): """ 直播间地址形式:http://activity.renren.com/live/liveroom/970302934_21348 rid即970302934_21348 Args: rid:房间号 """ self.rid = rid self.s = requests.Session...
# 人人直播:http://zhibo.renren.com/ import requests import re class RenRen: def __init__(self, rid): """ 直播间地址形式:http://activity.renren.com/live/liveroom/970302934_21348 rid即970302934_21348 Args: rid:房间号 """ self.rid = rid self.s = requests.Session...
27,090
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/showself.py
57,58
1,69
get_real_url
58,66
58,66
# 秀色直播:https://www.showself.com/ from urllib.parse import urlencode import requests import time import hashlib class ShowSelf: def __init__(self, rid): self.rid = rid self.headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' ...
# 秀色直播:https://www.showself.com/ from urllib.parse import urlencode import requests import time import hashlib class ShowSelf: def __init__(self, rid): self.rid = rid self.headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' ...
try: ss = ShowSelf(rid) return ss.get_real_url() except Exception as e: print('Exception:', e) return False
try: ss = ShowSelf(rid) return ss.get_real_url() except Exception as e: print('Exception:', e) return False
14
675
55
730
# 秀色直播:https://www.showself.com/ from urllib.parse import urlencode import requests import time import hashlib class ShowSelf: def __init__(self, rid): self.rid = rid self.headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' ...
# 秀色直播:https://www.showself.com/ from urllib.parse import urlencode import requests import time import hashlib class ShowSelf: def __init__(self, rid): self.rid = rid self.headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' ...
27,091
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/showself.py
19,20
9,57
get_real_url
ShowSelf
20,57
20,57
class ShowSelf: def __init__(self, rid): self.rid = rid self.headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' 'Chrome/95.0.4638.69 Safari/537.36 ' } self.s = requests.Session() de...
class ShowSelf: def __init__(self, rid): self.rid = rid self.headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' 'Chrome/95.0.4638.69 Safari/537.36 ' } self.s = requests.Session() de...
res = self.s.get('https://service.showself.com/v2/custuser/visitor', headers=self.headers).json() uid = res['data']['uid'] accesstoken = sessionid = res['data']['sessionid'] params = { 'accessToken': accesstoken, 'tku': uid, '_st1': int(time.time() * 1...
res = self.s.get('https://service.showself.com/v2/custuser/visitor', headers=self.headers).json() uid = res['data']['uid'] accesstoken = sessionid = res['data']['sessionid'] params = { 'accessToken': accesstoken, 'tku': uid, '_st1': int(time.time() * 1...
97
144
478
622
# 秀色直播:https://www.showself.com/ from urllib.parse import urlencode import requests import time import hashlib class ShowSelf: def __init__(self, rid): self.rid = rid self.headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' ...
# 秀色直播:https://www.showself.com/ from urllib.parse import urlencode import requests import time import hashlib class ShowSelf: def __init__(self, rid): self.rid = rid self.headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ' ...
27,092
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/sports_iqiyi.py
130,131
1,143
get_real_url
131,139
131,139
# -*- coding: utf-8 -*- # @Time: 2021/6/19 20:39 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com import binascii import hashlib import json import re import time from urllib.parse import urlencode import execjs import requests class sIQiYi: def __init__(self, rid): """ 收费直播间、未...
# -*- coding: utf-8 -*- # @Time: 2021/6/19 20:39 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com import binascii import hashlib import json import re import time from urllib.parse import urlencode import execjs import requests class sIQiYi: def __init__(self, rid): """ 收费直播间、未...
try: siqiyi = sIQiYi(rid) return siqiyi.get_real_url() except Exception as e: print('Exception:', e) return False
try: siqiyi = sIQiYi(rid) return siqiyi.get_real_url() except Exception as e: print('Exception:', e) return False
14
1,509
65
1,574
# -*- coding: utf-8 -*- # @Time: 2021/6/19 20:39 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com import binascii import hashlib import json import re import time from urllib.parse import urlencode import execjs import requests class sIQiYi: def __init__(self, rid): """ 收费直播间、未...
# -*- coding: utf-8 -*- # @Time: 2021/6/19 20:39 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com import binascii import hashlib import json import re import time from urllib.parse import urlencode import execjs import requests class sIQiYi: def __init__(self, rid): """ 收费直播间、未...
27,093
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/sports_iqiyi.py
31,32
19,130
decodeurl
sIQiYi
38,66
32,66
class sIQiYi: def __init__(self, rid): """ 收费直播间、未开播直播间、已结束直播间获取到的地址均无法播放; Args: rid: 这里传入完整的直播间地址 """ url = rid self.rid = url.split('/')[-1] self.s = requests.Session() def decodeurl(self): FILL_FUNC_BODY def get_real_url(self): ...
class sIQiYi: def __init__(self, rid): """ 收费直播间、未开播直播间、已结束直播间获取到的地址均无法播放; Args: rid: 这里传入完整的直播间地址 """ url = rid self.rid = url.split('/')[-1] self.s = requests.Session() def decodeurl(self): """ 传入url地址,截取url中的直播间id 字...
o = 'lgqipu' o = int(binascii.hexlify(o[::-1].encode()), 16) s = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' a = 0 rr = enumerate(self.rid) for i, _ in rr: a += s.index(_) * pow(36, len(self.rid) - (i + 1)) a = f'{a:b}' n...
""" 传入url地址,截取url中的直播间id 字符串lgqipu倒序后转为十进制数,作为qpid解码的传参 Returns: qpid """ o = 'lgqipu' o = int(binascii.hexlify(o[::-1].encode()), 16) s = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' a = 0 rr = enumerate(se...
90
1,027
316
1,343
# -*- coding: utf-8 -*- # @Time: 2021/6/19 20:39 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com import binascii import hashlib import json import re import time from urllib.parse import urlencode import execjs import requests class sIQiYi: def __init__(self, rid): """ 收费直播间、未...
# -*- coding: utf-8 -*- # @Time: 2021/6/19 20:39 # @Project: my-spiders # @Author: wbt5 # @Blog: https://wbt5.com import binascii import hashlib import json import re import time from urllib.parse import urlencode import execjs import requests class sIQiYi: def __init__(self, rid): """ 收费直播间、未...
27,094
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/tiktok.py
31,32
1,44
get_real_url
32,40
32,40
# -*- coding: utf-8 -*- # @Time: 2021/5/2 23:23 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import re import requests class TikTok: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 1...
# -*- coding: utf-8 -*- # @Time: 2021/5/2 23:23 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import re import requests class TikTok: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 1...
try: tt = TikTok(rid) return tt.get_real_url() except Exception as e: print('Exception:', e) return False
try: tt = TikTok(rid) return tt.get_real_url() except Exception as e: print('Exception:', e) return False
14
350
58
408
# -*- coding: utf-8 -*- # @Time: 2021/5/2 23:23 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import re import requests class TikTok: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 1...
# -*- coding: utf-8 -*- # @Time: 2021/5/2 23:23 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import re import requests class TikTok: def __init__(self, rid): self.rid = rid def get_real_url(self): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 1...
27,095
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url
/home/hieuvd/dung_repo/raw/stars_01/wbt5_real-url/real-url/tiktok.py
17,18
12,31
get_real_url
TikTok
18,31
18,31
class TikTok: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
class TikTok: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODY
headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', } res = requests.get(self.rid, headers=headers).text url = re.search(r'"LiveUr...
headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, ' 'like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', } res = requests.get(self.rid, headers=headers).text url = re.search(r'"LiveUr...
39
46
174
220
# -*- coding: utf-8 -*- # @Time: 2021/5/2 23:23 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import re import requests class TikTok: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: tt = TikTok(rid) retu...
# -*- coding: utf-8 -*- # @Time: 2021/5/2 23:23 # @Project: real-url # @Author: wbt5 # @Blog: https://wbt5.com import re import requests class TikTok: def __init__(self, rid): self.rid = rid def get_real_url(self): FILL_FUNC_BODYdef get_real_url(rid): try: tt = TikTok(rid) retu...