Skip to content

[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 #126

@xxxyo

Description

@xxxyo

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) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions