Nodriver

0.48.1 · active · verified Thu Apr 16

Nodriver is a Python library for browser automation and web scraping, acting as the official successor to Undetected-Chromedriver. It communicates directly with browsers using the Chrome DevTools Protocol, eliminating the need for Selenium or WebDriver binaries, which significantly boosts performance and resistance against anti-bot systems. It is fully asynchronous and focuses on usability and quick prototyping. The current version is 0.48.1, and it seems to have a regular update cadence given the recent articles and version number.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to launch a headless browser, navigate to a URL, retrieve the page title, and then close the page and browser instance. Nodriver operations are asynchronous and require `async`/`await`.

import nodriver
import asyncio

async def main():
    browser = await nodriver.start(headless=True)
    page = await browser.get('https://example.com')
    print(f"Page title: {await page.get_title()}")
    await page.close()
    await browser.stop()

if __name__ == '__main__':
    nodriver.loop().run_until_complete(main())

view raw JSON →