Skip to main content
Piloterr
Back to blog
April 15, 2024

NoDriver: Open Source Advanced Browser Control

In an era where web automation and scraping face significant challenges due to stringent anti-bot measures, a groundbreaking tool emerges: NoDriver. This advanced automation library, stemming from the legacy of Undetected-Chromedriver, offers a suite of features aimed at not only evading detection by web application firewalls (WAFs) but also drastically improving performance.

For production browser automation, compare NoDriver with headless browser APIs and anti-bot bypass.

NoDriver is a fully asynchronous tool that eliminates the need for traditional components like Selenium or Chromedriver binaries, providing direct communication with browsers (chrome, firefox, opera...). This approach not only reduces the detection rate by most anti-bot solutions but also significantly boosts the tool's performance.

Key Features

  1. Blazing Fast Performance: By removing the dependency on Chromedriver binaries and Selenium, NoDriver offers a performance increase that is notably superior to conventional methods.
  2. Stealth Mode Operation: The library is fine-tuned to stay undetected by common anti-bot solutions, facilitating smoother operations across websites.
  3. Ease of Use: With defaults set to best practices, most functionalities are operational right out-of-the-box, making it ideal for rapid prototyping.
  4. Comprehensive Element Interaction: Smart element lookup capabilities allow for interactions even within iframes, and elements can be selected by selector or text content.
  5. Dynamic Profile Management: Each session uses a fresh profile and cleans up afterward, with options to save and load cookies, which is particularly useful for avoiding repetitive login steps.
  6. Extensive Customization: The tool leverages the full array of Chrome DevTools Protocol (CDP) domains, methods, and events, offering detailed control over the browser.

Installation

Installation of NoDriver is straightforward. For users of the undetected-chromedriver package, it can be installed with a simple pip command:

Bash
pip install nodriver

Getting started with NoDriver involves initializing a browser instance and performing operations like navigating pages, taking screenshots, and manipulating page elements:

Python
import asyncio
import nodriver as uc

async def main():
    browser = await uc.start()
    page = await browser.get('https://example.com')
    await page.save_screenshot()
    # More interactions here

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

Advanced Example

Beyond basic navigation and screenshot capture, NoDriver excels in complex automation tasks. For instance, creating a Twitter account programmatically demonstrates its capability to handle dynamic interactions, such as clicking buttons based on text matching and filling forms with randomized data.

Conclusion

NoDriver is not just an automation tool; it is a comprehensive framework that redefines the possibilities of web automation and scraping. Whether for testing, data extraction, or automating repetitive web tasks, NoDriver provides a robust, undetectable, and efficient solution. Its emphasis on performance, stealth, and ease of use makes it an invaluable asset for developers facing the challenges of modern web environments.

More to read

Guides and news about web scraping, proxies, and data extraction.

Open Source & Hot

Deploy n8n with AI Modules on Render for Free

Practical guide to deploy n8n with AI modules on Render. Learn how to set up your instance for FREE, keep your server active, and use advanced automation features with AI.

Josselin Liebe
Josselin Liebe
Read

IP-Based Restrictions with Requests-IP-Rotator

Dive into the world of unrestricted web access with Requests-IP-Rotator – the key to unlocking endless possibilities in data extraction and cybersecurity. Say goodbye to IP-based rate limits and hello to seamless, efficient web scraping.

Josselin Liebe
Josselin Liebe
Read

Botright : Open-Source Automation Framework

Botright, an innovative, undetectable, and open-source automation framework designed to revolutionize web automation tasks. Developed by Vinyzu and built on Playwright's robust foundations.

Josselin Liebe
Josselin Liebe
Read

Ready to get started?

Your web scraping API is one click away. Start with +500 credits, no infrastructure to set up, no proxies to manage, and no credit card required.

  • +500 credits
  • No credit card required
  • All endpoints included