Pydoll is a library for automating chromium-based browsers without a WebDriver, offering realistic interactions.
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.
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.navigator.webdriver flag, no version-matching headaches.asyncio, type-checked with mypy. Full IDE autocompletion and static error checking.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.
|
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.
|
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
pip install pydoll-pythonNo WebDriver binaries or external dependencies required.
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.
…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.)
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.pyexist only as a reference for how coherent a profile has to be and the shape of theFingerprintConfigyou inject. Bring your own.
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.
import asyncio[Bug]: Pydoll being detected by the Datadome
Feature: Scrapy plugin for Pydoll (`scrapy-pydoll`)
[Feature Request]: Expose Chromium foreground-tab and tab-strip metadata (Chrome 150+)
[Feature Request]: Add Timeout Value to click() Events
[Bug]: Proxy with authentication causes navigation timeout
[Feature Request]: Please support uploading with FormData, Blob, File
[Feature Request]: query selector hcaptcha leak
PermissionError
[Refactor]: Improve type safety for browser preferences
[Feature Request]: Add Global Timeout Value for all find() Events