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.5.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.0.5-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: undetected-playwright-0.0.5.tar.gz
  • Upload date:
  • Size: 24.3 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.5.tar.gz
Algorithm Hash digest
SHA256 57823955755c7ac65d7c1f153d7bcc395fc482f50813d5621e4d9c00bd29005e
MD5 076a39cc462e5833f66def0ab79170b4
BLAKE2b-256 7db10bf670eeecaa8a0b10396f56bc12101ccbec2d5e164e953505a9b44dc883

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for undetected_playwright-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a5e2cd6853f15167ba9ff0918ac8879ac8e608fb4c426478ac90633beeeacefd
MD5 e1e73a5ab57452d3b47b3afa9709a53a
BLAKE2b-256 68d23a69e1efea5885c31c89d24feeff96af445dc1130a7063473c64f7e628b3

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