mirror of
https://github.com/wbt5/real-url.git
synced 2025-06-17 08:25:25 +08:00
⚡ 优化代码
This commit is contained in:
parent
e3b91d4c88
commit
009574e918
2
9xiu.py
2
9xiu.py
@ -10,7 +10,7 @@ class JXiu:
|
|||||||
|
|
||||||
def get_real_url(self):
|
def get_real_url(self):
|
||||||
with requests.Session() as s:
|
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 = {
|
headers = {
|
||||||
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) '
|
'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'
|
'AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user