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.2.tar.gz (7.7 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.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: undetected-playwright-0.0.2.tar.gz
  • Upload date:
  • Size: 7.7 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.2.tar.gz
Algorithm Hash digest
SHA256 63638378eb9ac3b02f3d61c4797f21f261a37621351f9fc4d33df6cee85f4f17
MD5 1504bd57c5e4c47e79fbbdf1adf33dad
BLAKE2b-256 4b149a3a450d6c1e9e884d9844cde86f541674133b302624377642e1805121a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for undetected_playwright-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4a3b74ba3ac5efa76f8f07e460c974bacd235a3f55d41e1abbc3b145aaa1df9
MD5 30071b50eb6a60cf66286b7c6dc8cbec
BLAKE2b-256 c1b1e275c2046324e197d435c92c206cf3897a8ba523c12ea8d86c9805f9a98a

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