Skip to main content

🥷🏻 tf-playwright-stealth PyPI version AgentQL Join Discord

Transplanted from puppeteer-extra-plugin-stealth.

This is a package that makes playwright stealthy like a ninja by spoofing browser features in order to reduce the chance of detection.

Install

pip install tf-playwright-stealth

Usage

sync

from playwright.sync_api import sync_playwright
from playwright_stealth import stealth_sync

with sync_playwright() as p:
    browser = p.chromium.launch(
            headless=True,
        )
    page = browser.new_page()
    stealth_sync(page)
    page.goto("https://bot.sannysoft.com/")
    page.screenshot(path=f"example_with_stealth.png", full_page=True)
    browser.close()

async

from playwright.async_api import async_playwright
from playwright_stealth import stealth_async

with async_playwright() as p:
    browser = await p.chromium.launch(
            headless=True,
        )
    page = await browser.new_page()
    await stealth_async(page)
    await page.goto("https://bot.sannysoft.com/")
    await page.screenshot(path=f"example_with_stealth_async.png", full_page=True)
    await browser.close()

Results

From bot.sannysoft.com

Headless Headful
Headless Headful

Release files for tf-playwright-stealth 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tf-playwright-stealth 1.2.0
File Size Uploaded
tf_playwright_stealth-1.2.0.tar.gz 23.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tf-playwright-stealth 1.2.0
File Interpreter ABI Platform
tf_playwright_stealth-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 56.5 kB

Release files / tf_playwright_stealth-1.2.0.tar.gz

Download URL tf_playwright_stealth-1.2.0.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7bb8d32d3e60324fbf6b9eeae540b8cd9f3b9e07baeb33b025dbc98ad47658ba
BLAKE2b-256 checksum
How to use checksums
d66b32bb58c65991f91aeaaf7473b650175d9d4af5dd383983d177d49ccba08d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.2 Darwin/24.5.0

Release files / tf_playwright_stealth-1.2.0-py3-none-any.whl

Download URL tf_playwright_stealth-1.2.0-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26ee47ee89fa0f43c606fe37c188ea3ccd36f96ea90c01d167b768df457e7886
BLAKE2b-256 checksum
How to use checksums
113d2653f4cf49660bb44eeac8270617cc4c0287d61716f249f55053f0af0724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.2 Darwin/24.5.0

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.5

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page