What is nodriver?
nodriver is the official successor of Undetected-Chromedriver, providing a fully asynchronous Python library for browser automation and web scraping. It communicates directly with the browser using the Chrome DevTools Protocol (CDP), eliminating the need for Selenium or ChromeDriver binaries.No more WebDriver, no more Selenium - Direct communication provides better resistance against web application firewalls (WAFs) with massive performance gains.
Why nodriver?
What makes nodriver different from other browser automation packages is its optimization to stay undetected by anti-bot solutions, combined with a focus on usability and quick prototyping.Undetectable by design
Optimized to bypass Captcha, Cloudflare, Imperva, hCaptcha, and other anti-bot systems
Fully asynchronous
Built on async/await for massive performance improvements and granular control
No dependencies
No ChromeDriver binary or Selenium requirement - communicates directly with the browser
Quick to start
Up and running in 1-2 lines of code with best practice defaults built-in
Key features
Smart element lookup
Find elements by text or CSS selector with intelligent matching:Automatic cleanup
- Uses a fresh profile on each run
- Automatically cleans up created files on exit
- Save and load cookies to skip repetitive login steps
Advanced capabilities
Cloudflare verification
Cloudflare verification
Built-in Cloudflare challenge solver with
tab.cf_verify() - finds and clicks the checkbox automatically (requires opencv-python).Event handlers
Event handlers
Add custom handlers for any CDP event:
LocalStorage management
LocalStorage management
Easy access to browser storage:
Connection to running browser
Connection to running browser
Connect to an existing Chrome debug session for debugging and inspection.
Supported browsers
nodriver works with all Chromium-based browsers:- Chrome
- Chromium
- Edge
- Brave
Quick example
Here’s how simple it is to get started:Next steps
Installation
Install nodriver and get your environment ready
Quickstart
Build your first automation script in minutes
API Reference
Explore the complete API documentation
Examples
Learn from real-world use cases and patterns