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: Patches for Puppeteer and Playwright

🐛 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 136.0.7103.25
WebKit 18.4
Firefox 137.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

If you're not sure about the file name format, learn more about wheel file names.

rebrowser_playwright-1.52.0-py3-none-win_arm64.whl (30.4 MB view details)

Uploaded Python 3Windows ARM64

rebrowser_playwright-1.52.0-py3-none-win_amd64.whl (34.5 MB view details)

Uploaded Python 3Windows x86-64

rebrowser_playwright-1.52.0-py3-none-win32.whl (34.5 MB view details)

Uploaded Python 3Windows x86

rebrowser_playwright-1.52.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (44.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

rebrowser_playwright-1.52.0-py3-none-macosx_11_0_universal2.whl (39.3 MB view details)

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

rebrowser_playwright-1.52.0-py3-none-macosx_11_0_arm64.whl (37.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

rebrowser_playwright-1.52.0-py3-none-macosx_10_13_x86_64.whl (39.3 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

Details for the file rebrowser_playwright-1.52.0-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for rebrowser_playwright-1.52.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 9bed76a49ce51feb65ca1f5e7df92302152e52893de4df472c998416d9806119
MD5 c1c7ce3f6cdd428b03e7d16a175cb78a
BLAKE2b-256 f0597155d058949baed2f10ae9f5dcb4416afc89d3ff6daadaa50d01d2035fd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rebrowser_playwright-1.52.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e945020f49abb498e0d3965ba106fdc2d7afa13dbe98e789fbd3aab90bb811c2
MD5 a81609ea6832185c521dfec18af44eb7
BLAKE2b-256 e0f3023969defc1fe4178e38c45805e3a77f44d79def9db5329c5f3506fe2d18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rebrowser_playwright-1.52.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 928519b50dab08e14ac286334d96b7b09cd1090253c996c14042ecb6fb302776
MD5 180b9766ac145657781e457306f8684b
BLAKE2b-256 e70f595b60ca41c5f381147b041d90a720aa3820d17156d3cda9b4f2a29d1acc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rebrowser_playwright-1.52.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 065c70e1901928b16f07d26161f3c2d8f672e9176ddae055b9e802a591d88166
MD5 d1919c279430ed6b6ba2e346921cccf4
BLAKE2b-256 43678c6e02660ae209790cd73ecd99f6cacd2b85da19139d1e158f332f6a471e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rebrowser_playwright-1.52.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b9d27ee9fbacd597fb36a38c39d142f9a9a8837230c66207f5c15c727d3a1d91
MD5 bfe09cfbe2814d89beab97c1cfc1434e
BLAKE2b-256 12919fbff3e85dd2fd765452b1d287ef4ae93a96b669385228fa8e516085f7ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rebrowser_playwright-1.52.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 ddd095e39e0ff68972307bd1fbe40f4a9e44fa4dbf121926b707a6b019ec9945
MD5 18387f5aa644380d04f4fb757233c8dd
BLAKE2b-256 49cabc3a206788195218f15b9a44b51b74c651f0f17c29a925226434ea28bd3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rebrowser_playwright-1.52.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5dbf5ee4d6b34fba163e975c88bf34f6badb56290aa091510e422da4932c1e24
MD5 1102c721f527f81a9ce3d0bccfee2cfd
BLAKE2b-256 fa47e5e44a9ddb7ab3f7305eced9ada7df72472abfe5e84165fcf35f220ab5aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rebrowser_playwright-1.52.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ab47150ee1ab2efe2c5738b631cf366b46bcef3e2d3a72405fec564d8b13d424
MD5 ad8a8659c970a2ccd19e2cc89ffdb3dd
BLAKE2b-256 0a901c9ecdb44b81c1b46d284ebd9d5ef27b5567a66192856e001c67caf2e02d

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