Skip to main content

playwright stealth

Project description


Transplanted from puppeteer-extra-plugin-stealth, Not perfect.


$ pip install playwright-stealth


from playwright import sync_playwright
from playwright_stealth import stealth_sync

playwright = sync_playwright().start()

# Use playwright.chromium, playwright.firefox or playwright.webkit
# Pass headless=False to see the browser UI
executablePath = 'C:\\Google\\Chrome\\Application\\chrome.exe'
browser = playwright.chromium.launch(executablePath=executablePath, headless=True)
page = browser.newPage()

Test results

playwright without stealth

<figure class="image"><figcaption>headless</figcaption></figure>

playwright with stealth

<figure class="image"><figcaption>headless</figcaption></figure>

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for playwright-stealth, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size playwright_stealth-1.0.3-py3-none-any.whl (25.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size playwright-stealth-1.0.3.tar.gz (18.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page