mirror of
https://github.com/wbt5/real-url.git
synced 2025-07-30 21:32:14 +08:00
commit
46f7eab963
@ -22,11 +22,11 @@ class Huya:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(url, headers=headers) as resp:
|
||||
room_page = await resp.text()
|
||||
m = re.search(r"ayyuid: +'([0-9]+)'", room_page, re.MULTILINE)
|
||||
m = re.search(r"lYyid\":([0-9]+)", room_page, re.MULTILINE)
|
||||
ayyuid = m.group(1)
|
||||
m = re.search(r"TOPSID += +'([0-9]+)'", room_page, re.MULTILINE)
|
||||
m = re.search(r"lChannelId\":([0-9]+)", room_page, re.MULTILINE)
|
||||
tid = m.group(1)
|
||||
m = re.search(r"SUBSID += +'([0-9]+)'", room_page, re.MULTILINE)
|
||||
m = re.search(r"lSubChannelId\":([0-9]+)", room_page, re.MULTILINE)
|
||||
sid = m.group(1)
|
||||
|
||||
oos = tarscore.TarsOutputStream()
|
||||
|
Loading…
x
Reference in New Issue
Block a user