Skip to content

nodriver

4,969 2 28 AGPL-3.0
0.50.99 (26 Oct 2026) Jan 15 2024 370.2 thousand (month)

nodriver is a Python library for browser automation that communicates directly with the browser via the Chrome DevTools Protocol (CDP), without relying on Selenium or chromedriver. It is the successor to undetected-chromedriver, created by the same author, and is designed from the ground up to be undetectable by anti-bot systems.

Key advantages over traditional browser automation:

  • No chromedriver dependency Communicates directly with Chrome/Chromium via CDP websocket, eliminating the most common detection vector (chromedriver fingerprint).
  • Undetectable by default Does not set the navigator.webdriver flag, does not inject automation-related JavaScript, and avoids CDP detection patterns that anti-bot systems look for.
  • Fast and lightweight Without the Selenium/WebDriver protocol overhead, nodriver is significantly faster at launching browsers and executing commands.
  • Async-first Built entirely on Python's asyncio, enabling efficient concurrent browser automation.
  • Simple API Clean, Pythonic API that is easier to use than raw CDP or Selenium.

nodriver is particularly useful for scraping websites protected by advanced anti-bot systems like Cloudflare, DataDome, or PerimeterX, where standard Selenium or Playwright setups get detected and blocked.

Highlights


anti-detectcdpasyncfast

Example Use


import nodriver as uc
import asyncio

async def main():
    # Launch browser - undetected by default
    browser = await uc.start()

    # Open a new tab and navigate
    tab = await browser.get("https://example.com")

    # Wait for an element and interact with it
    search_box = await tab.find("input[name='q']")
    await search_box.send_keys("web scraping")

    # Click a button
    button = await tab.find("button[type='submit']")
    await button.click()

    # Wait for navigation and extract content
    await tab.wait_for("div.results")
    results = await tab.query_selector_all("div.result")

    for result in results:
        title = await result.query_selector("h3")
        print(await title.get_text())

    # Take a screenshot
    await tab.save_screenshot("results.png")

    browser.stop()

asyncio.run(main())

Alternatives / Similar


12,918 3.5.5 (2024-02-17 17:18:36 ago) Sep 04 2020 compare
13,900 0.5.9 (2026-11-01 06:22:04 ago) Mar 01 2024 compare
7,155 3.0.1 (2026-11-08 11:38:44 ago) Jun 01 2024 compare
861 1.9.4 (2024-10-22 01:41:19 ago) Jul 22 2022 compare
15,138 1.65.2 (2026-11-14 00:28:39 ago) Feb 24 2021 compare
7,271 v0.6.1 (2024-03-02 18:08:29 ago) Feb 23 2022 compare
6,933 0.17.0 (2026-10-26 04:12:42 ago) Feb 23 2022 compare
34,616 4.54.0 (2026-11-23 09:08:00 ago) Apr 25 2008 compare
638 2.0.1 (2026-09-13 00:17:31 ago) Jun 01 2024 compare
122,292 1.0.9 (2026-11-26 23:16:49 ago) Nov 01 2024 compare
1,837 0.7.1 (2026-11-13 15:27:15 ago) Dec 28 2012 compare
5,879 4.0.97 (2026-01-06 07:45:54 ago) Oct 01 2023 compare
1,023 0.9.2 (2024-12-01 02:55:27 ago) Feb 23 2022 compare
23,559 1.0.58 (2026-11-15 00:18:00 ago) Feb 01 2024 compare
4,190 3.5 (2020-06-16 13:27:02 ago) Apr 25 2014 compare

Other Languages

101,263 1.65.1 (2026-11-28 05:27:44 ago) Jan 23 2015 compare
rod
7,161 v0.116.2 (2024-07-12 11:52:28 ago) Sep 23 2022 compare
26,174 4.5.0 (2026-11-27 21:43:59 ago) Oct 29 2024 compare
95,915 2.11.2 (2023-04-11 04:13:00 ago) May 29 2018 compare
7,426 3.3.6 (2023-03-01 12:19:02 ago) May 15 2018 compare
13,387 v0.24.0 (2026-11-18 05:04:28 ago) Mar 11 2022 compare
3,072 v2.4.0 (2026-01-08 05:29:21 ago) Jul 17 2018 compare
Was this page helpful?