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

优化代码 艺气山直播

This commit is contained in:
wbt5 2021-11-08 22:30:19 +08:00
parent af57d695e4
commit 686ff2ca99
No known key found for this signature in database
GPG Key ID: 92D5C42E815A2BD6

3
173.py
View File

@ -11,7 +11,7 @@ class YQS:
def get_real_url(self):
params = 'roomId={}'.format(self.rid)
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']
if data:
status = data['status']
@ -35,4 +35,3 @@ def get_real_url(rid):
if __name__ == '__main__':
r = input('输入艺气山直播房间号:\n')
print(get_real_url(r))