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.1.0.tar.gz (24.3 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.1.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: undetected-playwright-0.1.0.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for undetected-playwright-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9f939e60299abe488aded496bcbcee65ea156f362482f3cc345b785e5747becb
MD5 c0df6f61432aca3227700912293aba85
BLAKE2b-256 f5869d15baf39bd3822ac97ca3a46cbab738a6225efceffb3adff37052e7f764

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for undetected_playwright-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a6ddd24478e6977eb263d2400fc142d2599cb7ce2689a3e8f8f599ced8aac5
MD5 1de529380c1ac8b12abaf1d2ca8e7f48
BLAKE2b-256 e40d2d0466298aef99761930142508b255f050dd9b88e8f1285de18c2e2306c3

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