[Python] Nodriver closes browser just after the start

Discussão em 'Python' iniciado por Stack, Maio 23, 2025.

  1. Stack

    Stack Membro Participativo

    I've got nodriver==0.46.1 And Google Chrome 136.0.7103.113 OC Fedora 42

    Tried to connect to cloudflare and test verify_cf() func, but browser and program closing shortly after starting.

    import nodriver as uc
    from time import sleep

    async def main():

    browser = await uc.start(headless=False)
    page = await browser.get('https://dash.cloudflare.com/login')
    await page.verify_cf()

    if __name__ == '__main__':
    uc.loop().run_until_complete(main())
    sleep(2)


    With asyncio.run() it works the same. It didn't even have time to load the page. In logging it just tells that nodriver successfully removed temp profile /tmp/uc_cotkkeuy and that's it. In debug logging i can't tell what it do wrong. Is there a bug? Considering that Chrome newest version come out on 21th May. Maybe it's broke something?

    Continue reading...

Compartilhe esta Página