playwright stealth
Project description
playwright_stealth
Transplanted from puppeteer-extra-plugin-stealth, Not perfect.
Install
$ pip install playwright-stealth
Usage
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()
stealth_sync(page)
Test results
playwright without stealth
playwright with stealth
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
playwright-stealth-1.0.3.tar.gz
(18.8 kB
view hashes)
Built Distribution
Close
Hashes for playwright_stealth-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6da492b123b44b6237860fd88f3af3c1bbf0dce465f42ed83b7fc5b2ecc90a7 |
|
MD5 | 9ff0a17e9e5ca65aebf66e53996d3189 |
|
BLAKE2b-256 | 563814b8d260061ab3e2b97301eee73eb3036082bd3c0737285d00418f0dba19 |