mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
bring tab to front
This commit is contained in:
parent
b9a433905e
commit
0178eeec68
1
main.py
1
main.py
@ -33,6 +33,7 @@ async def read_item(request: LinkRequest):
|
|||||||
start_time = int(time.time() * 1000)
|
start_time = int(time.time() * 1000)
|
||||||
browser = await new_browser()
|
browser = await new_browser()
|
||||||
page = await browser.get(request.url)
|
page = await browser.get(request.url)
|
||||||
|
await page.bring_to_front()
|
||||||
|
|
||||||
challenged = await asyncio.wait_for(
|
challenged = await asyncio.wait_for(
|
||||||
bypass_cloudflare(page), timeout=request.maxTimeout
|
bypass_cloudflare(page), timeout=request.maxTimeout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user