Skip to main content

pyppeteer stealth

Project description


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


$ pip install pyppeteer_stealth


import asyncio
from pyppeteer import launch
from pyppeteer_stealth import stealth

async def main():
    browser = await launch(headless=True)
    page = await browser.newPage()

    await stealth(page)  # <-- Here

    await page.goto("")
    await browser.close()

Test results

Pyppeteer without stealth

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

Pyppeteer with stealth

<figure class="image"><figcaption>headless</figcaption></figure> <figure class="image"><figcaption>headful</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 pyppeteer-stealth, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pyppeteer_stealth-1.0.2.tar.gz (6.0 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