Nodriver Async Undetected Chrome Browser Automation for Python
Nodriver is the official successor to Undetected-Chromedriver, providing async browser automation that communicates directly with Chrome DevTools Protocol without Selenium or WebDriver dependencies. Built for stealth web automation that bypasses anti-bot systems including Cloudflare and Imperva.
Installation
Use the upstream install or setup path that matches your environment:
you can use pip to install nodriver
- pip install nodriver
- pip install -U nodriver
Requirements and caveats from upstream:
nodriver provides next level async webscraping and browser automation library for python with an easy interface which Just Makes Sense ™
- This is the official successor of the Undetected-Chromedriver python package.
- requires opencv-python package to be installed
Basic usage or getting-started notes:
uses fresh profile on each run, cleans up on exit
Since this required quite some rewriting, please test thoroughly, especially if you run large projects.
for example when a certificate is invalid.
Extracted from upstream docs: https://raw.githubusercontent.com/ultrafunkamsterdam/nodriver/HEAD/README.md