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.2.0.tar.gz (32.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.2.0-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file undetected_playwright-0.2.0.tar.gz.

File metadata

  • Download URL: undetected_playwright-0.2.0.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.0 CPython/3.10.11 Windows/10

File hashes

Hashes for undetected_playwright-0.2.0.tar.gz
Algorithm Hash digest
SHA256 042c2138ce84ed8522d20e3ba56bb4932e7eab0fd8255e85f501d0a604e5c146
MD5 1650fe75be6eb354ab35da16ea08b782
BLAKE2b-256 9672bce9861844102787d908108d2b0923437174983e846cc41fb21f4df66e54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for undetected_playwright-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c4f54db02c2f533d9de4197b8b3e54a7e693fe3dc47b31f1527b04c04b86f7
MD5 2e3a9911d8bc58fbb5a98851b8aa1193
BLAKE2b-256 89b594ec9030270b4b13061a554c7505901f5ab861bd682edbf9cf538292f4e0

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