1
0
mirror of https://github.com/wbt5/real-url.git synced 2025-06-16 15:59:57 +08:00

优化代码

This commit is contained in:
wbt5 2021-11-07 20:46:06 +08:00
parent e3b91d4c88
commit 009574e918
No known key found for this signature in database
GPG Key ID: 92D5C42E815A2BD6

View File

@ -10,7 +10,7 @@ class JXiu:
def get_real_url(self):
with requests.Session() as s:
url = 'https://h5.9xiu.com/room/live/enterRoom?rid=' + str( self.rid)
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/15A372 Safari/604.1'