-
Download PyPi package
pip install -U undetected-playwright
-
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()
forked from QIN2DIM/undetected-playwright
-
Notifications
You must be signed in to change notification settings - Fork 0
You know who I am
License
wizpresso-steve-cy-fan/undetected-playwright
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
You know who I am
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 89.0%
- Python 11.0%