Skip to main content

A high-level API to automate web browsers

Project description

rebrowser-playwright

⚠️ This is the original playwright-python patched with rebrowser-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 PyPI version Anaconda version Join Discord

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rebrowser_playwright-1.48.100-py3-none-win_amd64.whl (29.7 MB view details)

Uploaded Python 3 Windows x86-64

rebrowser_playwright-1.48.100-py3-none-win32.whl (29.7 MB view details)

Uploaded Python 3 Windows x86

rebrowser_playwright-1.48.100-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.6 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

rebrowser_playwright-1.48.100-py3-none-macosx_11_0_universal2.whl (34.7 MB view details)

Uploaded Python 3 macOS 11.0+ universal2 (ARM64, x86-64)

rebrowser_playwright-1.48.100-py3-none-macosx_11_0_arm64.whl (33.0 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

rebrowser_playwright-1.48.100-py3-none-macosx_10_13_x86_64.whl (34.7 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

Details for the file rebrowser_playwright-1.48.100-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for rebrowser_playwright-1.48.100-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 736d1676a1631021e41775bc3f2118582004da0702a07d572d17145dacd3bb24
MD5 d77c926b0168426bdf445e3fd7a4b4da
BLAKE2b-256 8feaddf2647c350f8e4707c1feaa6b3d7a46fc8c22426caafe4014183c3d0929

See more details on using hashes here.

File details

Details for the file rebrowser_playwright-1.48.100-py3-none-win32.whl.

File metadata

File hashes

Hashes for rebrowser_playwright-1.48.100-py3-none-win32.whl
Algorithm Hash digest
SHA256 3da12b0c3259956a633684ce4f502e2f7182294d8d2dbb21fb9dd3d820b9f992
MD5 43a9ff259ce75582abdcb4c15e7575c3
BLAKE2b-256 f0f898c34600733e2d2512d3c24ea5b1aea975a3810491e642944478386537dd

See more details on using hashes here.

File details

Details for the file rebrowser_playwright-1.48.100-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for rebrowser_playwright-1.48.100-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ce3e4381dde593c6acc8e1c1701c2f2c4ab423e764ff9d491a87c0d994872f8e
MD5 c7ffba685dcab77e6df7d1951f61b518
BLAKE2b-256 93fc606d2f899b1ef3cd72db879a5aef267b2220a00861d26fac73e0fa9bb5f3

See more details on using hashes here.

File details

Details for the file rebrowser_playwright-1.48.100-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rebrowser_playwright-1.48.100-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4ad746ab42b565ad2b49b2dc7ef3e50628424214179012b3f563e68ccc1f3167
MD5 eefe85a458cf185d2b8139a095e280a6
BLAKE2b-256 c06ed658501f799368c1ce927cb1d9aa7f5e47b79d7b7a7386fbe2d7fab4e396

See more details on using hashes here.

File details

Details for the file rebrowser_playwright-1.48.100-py3-none-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for rebrowser_playwright-1.48.100-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 3f0f24c3775471d16f7d870d5f39c71243a20342ce985f47d0bbf51a5e6e2e64
MD5 136a46dfe69b0360a60f3d7b36ba5bcc
BLAKE2b-256 7afbf914071175794df4849a31322919cc1416714eca726468ebdf892bba1711

See more details on using hashes here.

File details

Details for the file rebrowser_playwright-1.48.100-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rebrowser_playwright-1.48.100-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70c0e2c1b12447db46fc56ef929fecad4de51b3a8ef51343f177a64ced58d3f1
MD5 9224f9e18d94dfd284a7d1f5886f6902
BLAKE2b-256 b8600cd6681f0ac82b4963c5e51ed4b324f56d517d124bc63513f6772d19bfec

See more details on using hashes here.

File details

Details for the file rebrowser_playwright-1.48.100-py3-none-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for rebrowser_playwright-1.48.100-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0ec605da805899b9e32a0fd0ee908d3e1636a04226d2a89ac7c7c20358f4e20a
MD5 810755187a09b1956c8837c16d2feb10
BLAKE2b-256 c017eef3c7cb6cd847f9dc356e912b4666d6e3ea7aa77fc3a8b8c5735376b18d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page