Botright icon indicating copy to clipboard operation
Botright copied to clipboard

[Question] I want to know where the user agent was generated from. I used Playwright asynchronously to access the browserscan website, and he informed me that the browser version set by your browser does not match your actual browser version. It seems that the newly generated UA cannot be overwritten

Open xxxyo opened this issue 1 year ago • 0 comments

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) 

xxxyo avatar Aug 09 '24 08:08 xxxyo