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.3.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.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: undetected-playwright-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a6585fa420de32cfe8ed673d5bb8796a69ec6914d692d22f5732e23204b86179
MD5 a95a93620004618be17d87a787f7d3ac
BLAKE2b-256 ad058bd2b93f16229c5007d109ffd6278c512104c7261103f8bc9eed8fb3e526

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for undetected_playwright-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa5c926c05693b870e64ca46a60602bec0d2aa25256bd667de247e74f66a4295
MD5 04129a6ff3ed7d76cf4f2ae8e85f2a19
BLAKE2b-256 ce62d8eeb9a423b8445a0777ee94fac967394e3207807f256363a05e6246429d

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