A high-level API to automate web browsers
Project description
rebrowser-playwright
⚠️ This is the original
playwright-python
patched withrebrowser-patches
.🕵️ The ultimate goal is to pass all automation detection tests presented in
rebrowser-bot-detector
.🪄 It's designed to be a drop-in replacement for the original
playwright
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: How to Access Main Context Objects from Isolated Context
🐛 Please report any issues in the
rebrowser-patches
repo.
🎭 Playwright for Python
Playwright is a Python library to automate Chromium, Firefox and WebKit browsers with a single API. Playwright delivers automation that is ever-green, capable, reliable and fast. See how Playwright is better.
Linux | macOS | Windows | |
---|---|---|---|
Chromium 130.0.6723.31 | ✅ | ✅ | ✅ |
WebKit 18.0 | ✅ | ✅ | ✅ |
Firefox 131.0 | ✅ | ✅ | ✅ |
Documentation
https://playwright.dev/python/docs/intro
API Reference
https://playwright.dev/python/docs/api/class-playwright
Example
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
for browser_type in [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()
import asyncio
from playwright.async_api import async_playwright
async def main():
async with async_playwright() as p:
for browser_type in [p.chromium, p.firefox, p.webkit]:
browser = await browser_type.launch()
page = await browser.new_page()
await page.goto('http://playwright.dev')
await page.screenshot(path=f'example-{browser_type.name}.png')
await browser.close()
asyncio.run(main())
Other languages
More comfortable in another programming language? Playwright is also available in
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file rebrowser_playwright-1.48.0-py3-none-win_amd64.whl
.
File metadata
- Download URL: rebrowser_playwright-1.48.0-py3-none-win_amd64.whl
- Upload date:
- Size: 29.7 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbc99e9a36c3bb6b09066519ca8ee577417875ab35fe62560420f1e1dcdffb8b |
|
MD5 | b8d5e407adcdaa9abd13c5f71c216f2e |
|
BLAKE2b-256 | 9b5e1236ad2b9c2481aca9bc2cf31a4564e9da5a20aa73dfb0f53cc8ebb38f6d |
File details
Details for the file rebrowser_playwright-1.48.0-py3-none-win32.whl
.
File metadata
- Download URL: rebrowser_playwright-1.48.0-py3-none-win32.whl
- Upload date:
- Size: 29.7 MB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f5aa682d60585e325016beadaf75a7225d25749435500af9bd567d33111a8c |
|
MD5 | 137943f64cb8760cfe305ea8b37a409a |
|
BLAKE2b-256 | 41ee00c0a60f70040fe6881737def868ba4d290ab628550735e3815536d8277e |
File details
Details for the file rebrowser_playwright-1.48.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: rebrowser_playwright-1.48.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 37.6 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9526cb266c9d5c6db7fd623d27af2110effc6db9a6e2744feb5426e0dcb61c39 |
|
MD5 | e7fe09a31dd34e0a3e0a70994ad294a4 |
|
BLAKE2b-256 | 550f30c77a932212a912ac1c08ff15783ad0ac5ae0835b94309dcf7f9a8c95a5 |
File details
Details for the file rebrowser_playwright-1.48.0-py3-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: rebrowser_playwright-1.48.0-py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 37.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3e0dbd8cfcb5000f8f16079dbb3fd50e30f2e3c87270d113596384ed6f71a31 |
|
MD5 | f33b8a9a9328c927aa0d2783d9d1ee07 |
|
BLAKE2b-256 | f7dc9f5428b224f2be39815cb65fbece9ee3159735663a88997a650b5bb96ba3 |
File details
Details for the file rebrowser_playwright-1.48.0-py3-none-macosx_11_0_universal2.whl
.
File metadata
- Download URL: rebrowser_playwright-1.48.0-py3-none-macosx_11_0_universal2.whl
- Upload date:
- Size: 34.7 MB
- Tags: Python 3, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841fb8711c1c48677038fb8af8a5823426125ba3916a5b026f64e3bcca756fb5 |
|
MD5 | 1ab16ed9c2a8349f1f88b69faa4f1671 |
|
BLAKE2b-256 | f50f7c5146998d1112cb9eade0ecf82211ab7a2daef7c00711245f4396e328d3 |
File details
Details for the file rebrowser_playwright-1.48.0-py3-none-macosx_11_0_arm64.whl
.
File metadata
- Download URL: rebrowser_playwright-1.48.0-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 33.0 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 526b9cc30aaf4fe51bfa32ad085f9f3a27c4387349c267822e56ffe46740d009 |
|
MD5 | e4e5da3e98cf701d3c78de774f06d0df |
|
BLAKE2b-256 | 807cab207ae438d3bacb978ae89537d02b7ef27e95b89c3da135566498cfec23 |
File details
Details for the file rebrowser_playwright-1.48.0-py3-none-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: rebrowser_playwright-1.48.0-py3-none-macosx_10_13_x86_64.whl
- Upload date:
- Size: 34.7 MB
- Tags: Python 3, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1c9610ee33bb94b3d35d637132f6b29e7b1cf3965ca2a7fcd08900bb4b3ec53 |
|
MD5 | 83f0a9f0ace06b7ba42feecde9212703 |
|
BLAKE2b-256 | 93ce4a673b552e88c78e7dd9df9bf8ad2076e0945f978e1c88f05f23fea19e96 |