Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A drop-in replacement for playwright-python patched with rebrowser-patches. It allows to pass modern automation detection tests.

License

NotificationsYou must be signed in to change notification settings

rebrowser/rebrowser-playwright-python

⚠️ This is the originalplaywright-python patched withrebrowser-patches.

🕵️ The ultimate goal is to pass all automation detection tests presented inrebrowser-bot-detector.

🪄 It's designed to be a drop-in replacement for the originalplaywright without changing your codebase. Each major and minor version of this repo matches the original repo, patch version could differ due to changes related to the patch itself.

☝️ Make sure to read:Patches for Puppeteer and Playwright

🐛 Please report any issues in therebrowser-patches repo.

🎭Playwright for PythonPyPI versionAnaconda versionJoin Discord

Playwright is a Python library to automateChromium,Firefox andWebKit browsers with a single API. Playwright delivers automation that isever-green,capable,reliable andfast.See how Playwright is better.

LinuxmacOSWindows
Chromium 131.0.6778.33
WebKit 18.2
Firefox 132.0

Documentation

https://playwright.dev/python/docs/intro

API Reference

https://playwright.dev/python/docs/api/class-playwright

Example

fromplaywright.sync_apiimportsync_playwrightwithsync_playwright()asp:forbrowser_typein [p.chromium,p.firefox,p.webkit]:browser=browser_type.launch()page=browser.new_page()page.goto('http://playwright.dev')page.screenshot(path=f'example-{browser_type.name}.png')browser.close()
importasynciofromplaywright.async_apiimportasync_playwrightasyncdefmain():asyncwithasync_playwright()asp:forbrowser_typein [p.chromium,p.firefox,p.webkit]:browser=awaitbrowser_type.launch()page=awaitbrowser.new_page()awaitpage.goto('http://playwright.dev')awaitpage.screenshot(path=f'example-{browser_type.name}.png')awaitbrowser.close()asyncio.run(main())

Other languages

More comfortable in another programming language?Playwright is also available in

About

A drop-in replacement for playwright-python patched with rebrowser-patches. It allows to pass modern automation detection tests.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp