async def run_browser(port):
headers = HeaderGenerator()
headers.generate()
botright_client = await botright.Botright(use_undetected_playwright=True)
lock = asyncio.Lock()
try:
async with lock:
browser = await botright_client.new_browser()
page = await browser.new_page()
await page.goto(f"https://www.browserscan.net/")
await page.wait_for_load_state('networkidle')
await asyncio.sleep(30)