Skip to main content

You know who I am

Project description

undetected-playwright

Usage

  1. Download PyPi package

    pip install -U undetected-playwright
    
  2. Run the demo

    As before.

    from playwright.sync_api import BrowserContext, sync_playwright
    
    from undetected_playwright import stealth_sync
    
    headless = True
    
    
    def run(context: BrowserContext):
        page = context.new_page()
        page.goto("https://bot.sannysoft.com/")
    
        _suffix = "-headless" if headless else "-headful"
        page.screenshot(path=f"result/sannysoft{_suffix}.png", full_page=True)
    
    
    def bytedance():
        with sync_playwright() as p:
            browser = p.chromium.launch(headless=headless)
            context = browser.new_context()
            stealth_sync(context)
            run(context)
    
    
    if __name__ == "__main__":
        bytedance()
    

Reference

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

undetected-playwright-0.0.4.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

undetected_playwright-0.0.4-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file undetected-playwright-0.0.4.tar.gz.

File metadata

  • Download URL: undetected-playwright-0.0.4.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for undetected-playwright-0.0.4.tar.gz
Algorithm Hash digest
SHA256 df0fe66114d08638b0d490dc71bc4b4ae12719128f541bbc32e886e579f798fb
MD5 a01f42b0e9b88094729c989a0040a0be
BLAKE2b-256 a438576aa53145acab5a32206a7c337c4ba6e3cb060e6c38954556913b0937f9

See more details on using hashes here.

File details

Details for the file undetected_playwright-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for undetected_playwright-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 175e80b897b96730aacc120e2c31bc1a98cf489ad233237b0ab4f25e37f558bb
MD5 9c49b0b0e57eeb81519b2f64bdec6ca2
BLAKE2b-256 2a9bd3d3c70e19259a8b40ee07db474b0d9258cea807c8eb8aeed1ced94dae69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page