mirror of
https://github.com/wbt5/real-url.git
synced 2025-07-24 17:41:45 +08:00
⚡ 优化代码 艺气山直播
This commit is contained in:
parent
af57d695e4
commit
686ff2ca99
3
173.py
3
173.py
@ -11,7 +11,7 @@ class YQS:
|
|||||||
def get_real_url(self):
|
def get_real_url(self):
|
||||||
params = 'roomId={}'.format(self.rid)
|
params = 'roomId={}'.format(self.rid)
|
||||||
with requests.Session() as s:
|
with requests.Session() as s:
|
||||||
res = s.post('http://www.173.com/room/getVieoUrl', params=params).json()
|
res = s.post('https://www.173.com/room/getVieoUrl', params=params).json()
|
||||||
data = res['data']
|
data = res['data']
|
||||||
if data:
|
if data:
|
||||||
status = data['status']
|
status = data['status']
|
||||||
@ -35,4 +35,3 @@ def get_real_url(rid):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
r = input('输入艺气山直播房间号:\n')
|
r = input('输入艺气山直播房间号:\n')
|
||||||
print(get_real_url(r))
|
print(get_real_url(r))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user