Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pydoll

> DevOps
Open source

Pydoll is a library for automating chromium-based browsers without a WebDriver, offering realistic interactions.

7.0K stars0 likes1 views
WebsiteGitHub

About

Pydoll is a library for automating chromium-based browsers without a WebDriver, offering realistic interactions.


The stealth-first browser automation library for Python.
No WebDriver, no navigator.webdriver flag, humanized clicks and typing.

</a>



= 3.10">
<a href="https://deepwiki.com/autoscrape-labs/pydoll"></a>

Documentation · Getting Started · Features · Support

You have probably watched a scraper work on your machine, then hit a wall of captchas and Cloudflare challenges the moment it ran for real. That wall is what Pydoll is built around. It drives Chrome directly over the DevTools Protocol, so there is no WebDriver binary and no navigator.webdriver flag to give you away, and it clicks, types, and scrolls like a real person. That is often enough to get past the bot protection that stops ordinary automation, all behind an async, fully typed API.

Why Pydoll?

  • Fingerprint injection: Make the browser report a fully consistent identity with tab.apply_fingerprint(): User-Agent, Client Hints, navigator, WebGL, canvas, screen, fonts, timezone and locale, all aligned. The injected overrides survive toString and prototype introspection and propagate into Web Workers, so lie-detection checks like CreepJS's don't flag them.
  • Humanized interactions: Mouse movement along Bezier curves, realistic typing, and scroll physics. Often enough to pass behavioral challenges like Cloudflare Turnstile or reCAPTCHA v3, depending on your browser and IP reputation.
  • Zero WebDrivers: A direct CDP connection over WebSocket. No driver binary, no navigator.webdriver flag, no version-matching headaches.
  • Async and typed: Built on asyncio, type-checked with mypy. Full IDE autocompletion and static error checking.
  • Network control: Intercept requests to block ads/trackers, monitor traffic for API discovery, and make authenticated HTTP requests that inherit the browser session.
  • Shadow DOM and iframes: Full support for shadow roots (including closed) and cross-origin iframes. Discover, query, and interact with elements inside them using the same API.
  • Structured extraction: Define a Pydantic model, call tab.extract(), and get typed, validated data back. No manual element-by-element querying.

[!NOTE] A word from the maintainer. Pydoll is currently maintained by a single person, and I'm a bit stretched at the moment, so new releases and replies to issues may take a little longer than usual. To be clear: the project is not dead, and it is not going anywhere. Development continues; it's just moving at a calmer pace for now.

A goal to aim for: once the project reaches 10k stars, I plan to ship Firefox support, a big step that opens up a whole new range of possibilities for the library. Momentum like that is exactly the kind of incentive that makes a feature this large worth taking on, so if you'd like to see it happen, that's the push it needs.

Top Sponsors

SerpApi
Web Search API for your AI apps. Available in Markdown and JSON for any integration.
IPcook
Residential proxies for stealth browser automation: 55M+ IPs in 185+ locations, rotating & sticky sessions, city-level targeting, HTTP & SOCKS5, 99.99% uptime, sub-0.5s responses, pay-as-you-go traffic that never expires. Use WELCOME20 for 20% off.
The Web Scraping Club
The #1 newsletter dedicated to web scraping. Read their full, independent review of Pydoll.
NodeMaven
The most efficient proxy provider for web scraping and automation: ZIP targeting, 99.9% uptime, filtered high-quality IPs, no KYC. Use PYDOLL35 for 35% off Mobile & Residential, or PYDOLL40 for 40% off ISP (Static) proxies.
NiuProxy
Rotating residential proxies with a special deal for Pydoll users: 10TB at $0.35/GB or 1TB at $0.50/GB. Use PAY2 for 10% off your recharge.

Sponsors


PYDOLL 15% off

1GB free via our link

AI-native testing cloud

Proxies for automation
➕ Your logo here
Become a sponsor

Learn more about our sponsors · Become a sponsor

Installation

bash
pip install pydoll-python

No WebDriver binaries or external dependencies required.

Getting Started

1. Stealthy Automation

The imperative API handles the basics: start a browser, navigate, find elements, and interact with them. Pass humanize=True to add human-like timing for anti-bot evasion.

…

2. Fingerprint Injection

Pydoll can also make the browser report a different identity. tab.apply_fingerprint() overrides the surface that fingerprinting scripts read (User-Agent and Client Hints, navigator, WebGL, canvas, screen, fonts, timezone and locale) and keeps those values consistent with each other.

Spoofing a fingerprint is less about changing the values than about not getting caught changing them. Modern anti-bot scripts inspect how a property was defined: a naive Object.defineProperty leaves a fake toString, an own-property where a prototype getter should be, or an override that a phantom iframe or a Web Worker can see straight through. Pydoll handles this: injected getters read as native under toString and prototype introspection, and the same identity is replayed inside dedicated, shared and service workers.

It also neutralizes the headless tells, chiefly the SwiftShader WebGL renderer that gives away a GPU-less browser, so headless=True is no longer an automatic giveaway. That is what lets a plain Google search run in headless mode. (Cloudflare Turnstile in headless is still under study.)

python
import asyncio

from pydoll.browser.chromium import Chrome

from examples.fingerprints import FINGERPRINTS

async def spoof_fingerprint():
    async with Chrome() as browser:
        tab = await browser.start()

        # Apply before navigating: the JS overrides register on every new document.
        await tab.apply_fingerprint(FINGERPRINTS['windows11_rtx3060_nyc'])

        await tab.go_to('https://abrahamjuliot.github.io/creepjs/')
        print('Fingerprint applied.')
        await asyncio.sleep(5)

asyncio.run(spoof_fingerprint())

In our testing it passed each of these fingerprint and bot-detection suites without being flagged:

Test site What it checks Result
CreepJS Lie detection, prototype / toString tampering, workers, fonts No detection
SannySoft Headless and bot signals No detection
BrowserScan Bot-detection suite No detection
BrowserLeaks WebGL WebGL vendor / renderer / hash No detection
BrowserLeaks JavaScript navigator / JS environment No detection
BrowserLeaks Canvas Canvas fingerprint No detection
BrowserLeaks WebRTC WebRTC IP leak No detection

A fingerprint is only as strong as its weakest layer. Anti-bot systems correlate signals across all of them. A browser that renders as macOS while its Accept-Language says Brazilian Portuguese, its timezone says Tokyo, and its IP geolocates to Germany is more suspicious than a browser you never touched. apply_fingerprint() keeps the layers it controls consistent, but you own the rest: the profile must match the real Chrome binary you drive (the network-layer TLS / HTTP2 fingerprint is authentic and cannot be spoofed) and the geography of your egress IP or proxy. The deep dive on browser fingerprinting and the Timezone and Locale Consistency section explain why a locale that contradicts the IP gets you blocked.

[!IMPORTANT] Pydoll does not generate or ship fingerprints. The profiles in examples/fingerprints.py exist only as a reference for how coherent a profile has to be and the shape of the FingerprintConfig you inject. Bring your own.

Fingerprint Injection Docs

3. Getting past Cloudflare Turnstile

Pydoll gets you past Cloudflare Turnstile the same way a person does: by placing a realistic, humanized click on the widget. It simulates a real user (humanized clicks and movements) and works to make the browser look genuine, so Turnstile assigns a high enough trust score to accept the click. Whether it succeeds depends on your browser and IP reputation.

python
import asyncio

Issues· 21 open

View all issuesOpen on GitHub
  • #438

    [Bug]: Pydoll being detected by the Datadome

    bugUpdated Aug 11, 2026
  • #248

    Feature: Scrapy plugin for Pydoll (`scrapy-pydoll`)

    enhancementfuture planningUpdated Jul 20, 2026
  • #436

    [Feature Request]: Expose Chromium foreground-tab and tab-strip metadata (Chrome 150+)

    Updated Jul 19, 2026
  • #274

    [Feature Request]: Add Timeout Value to click() Events

    enhancementUpdated Apr 12, 2026
  • #353

    [Bug]: Proxy with authentication causes navigation timeout

    bugUpdated Mar 24, 2026
  • #375

    [Feature Request]: Please support uploading with FormData, Blob, File

    enhancementUpdated Mar 2, 2026
  • #351

    [Feature Request]: query selector hcaptcha leak

    enhancementUpdated Feb 6, 2026
  • #44

    PermissionError

    Updated Jan 4, 2026
  • #289

    [Refactor]: Improve type safety for browser preferences

    enhancementUpdated Nov 4, 2025
  • #273

    [Feature Request]: Add Global Timeout Value for all find() Events

    enhancementUpdated Sep 29, 2025

> Tags

Pythonanti-detectionautomationbrowser-automationcdp

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 22, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理