What is Pydoll?
Pydoll is a stealth-first browser automation library for Python. It sits in the Web Scraping & Crawling category of the Data & Labeling tools and is open-source, written in Python and licensed MIT. To get started: install Pydoll.
Overview
Pydoll is a stealth-first browser automation library for Python. It drives Chromium directly over the Chrome DevTools Protocol on a WebSocket connection, so there is no WebDriver binary to install, no version matching to keep up with, and no `navigator.webdriver` flag for anti-bot scripts to read.
The problem it targets is the gap between a scraper that works on your laptop and one that runs for real. Pydoll moves the mouse along Bezier curves, types with realistic timing and applies scroll physics, which the project notes is often enough to clear behavioural challenges such as Cloudflare Turnstile or reCAPTCHA v3 — with the caveat that outcomes depend on your browser and IP reputation.
Beyond evasion it is a full automation toolkit: `tab.apply_fingerprint()` aligns User-Agent, Client Hints, `navigator`, WebGL, canvas, screen, fonts, timezone and locale into one consistent identity that survives `toString` and prototype introspection and propagates into Web Workers; request interception can block trackers or discover APIs; and `tab.extract()` returns typed, validated data against a Pydantic model instead of manual element-by-element querying. The API is async and type-checked with mypy. Note that the maintainer has posted that the project is currently maintained by one person and moving at a calmer pace.
What it does
- Direct CDP connection over WebSocket — no WebDriver binary and no `navigator.webdriver` flag
- Humanized interactions: Bezier-curve mouse movement, realistic typing and scroll physics
- Fingerprint injection aligning User-Agent, Client Hints, navigator, WebGL, canvas, screen, fonts, timezone and locale
- Network control: intercept requests, monitor traffic, and make authenticated HTTP requests that inherit the browser session
- Full shadow DOM (including closed roots) and cross-origin iframe support through the same API
- Structured extraction with `tab.extract()` against a Pydantic model, returning typed and validated data
Getting started
Pydoll installs as a single pip package with no external binaries. The API is asyncio-based, so entry points run under `asyncio.run`.
Install Pydoll
Requires Python 3.10 or newer. No WebDriver binaries or external dependencies.
pip install pydoll-pythonStart a browser and interact
Open a tab, find elements and act on them. Pass `humanize=True` to add human-like timing to typing and clicks.
import asyncio
from pydoll.browser import Chrome
from pydoll.constants import Key
async def google_search(query: str):
async with Chrome() as browser:
tab = await browser.start()
await browser.set_window_maximized()
await tab.go_to('https://www.google.com')
search_box = await tab.find(tag_name='textarea', name='q')
await search_box.type_text(query, humanize=True)
await tab.keyboard.press(Key.ENTER)
first_result = await tab.find(
tag_name='h3',
text='autoscrape-labs/pydoll',
timeout=10,
)
await first_result.click(humanize=True)
print(f"Page loaded: {await tab.title}")
asyncio.run(google_search('pydoll site:github.com'))Make the browser report a consistent identity
`tab.apply_fingerprint()` overrides the surfaces fingerprinting scripts read, keeping them mutually consistent rather than leaking a mismatched profile.
await tab.apply_fingerprint()Read the guides for the advanced surfaces
The documentation at pydoll.tech covers mouse behaviour, request interception, network monitoring, authenticated HTTP requests, DOM traversal into shadow roots, and structured extraction with Pydantic models.
Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Scrape a site that blocks ordinary Selenium or Playwright automation with bot-protection challenges
- Collect training or evaluation data from pages that require realistic interaction to render
- Discover a site's private API by monitoring network traffic while you drive the page
- Run end-to-end browser tests without maintaining a matching WebDriver binary per Chrome version
How Pydoll compares
Pydoll alongside other open-source web scraping & crawling tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Firecrawl | ★ 214k | A crawling service and API that converts whole websites into clean Markdown or structured JSON ready for LLMs. |
| Agent Reach | ★ 116k | A capability layer that installs, health-checks and routes readers so a CLI agent can read and search web pages, YouTube, RSS, GitHub, Reddit, Twitter/X and more without API fees. |
| Scrapling | ★ 107k | A Python web scraping framework whose parser relocates your elements when pages change, with stealthy fetchers and a Scrapy-like spider engine for full crawls. |
| Crawl4AI | ★ 88.2k | A local-first Python web crawler that turns pages into clean Markdown for use in RAG and LLM pipelines. |
| Scrapy | ★ 65.7k | A mature Python framework for writing fast spiders that crawl websites and extract structured data at scale. |
| changedetection.io | ★ 36.1k | A self-hosted web page change monitor with XPath/CSS/jq filters, browser steps and restock alerts, which can route every diff through an LLM to suppress noise. |
| ScrapeGraphAI | ★ 33k | A Python library that uses LLMs and a graph pipeline to extract data from pages based on natural-language prompts. |
| Pydoll | ★ 7.2k | Drive Chrome over CDP with no WebDriver and humanized interactions |
