Skip to main content

🎭 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

Metadata

Release files for playwright 1.52.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for playwright 1.52.0
File Actions
playwright-1.52.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for playwright-1.52.0-py3-none-win_arm64.whl
playwright-1.52.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for playwright-1.52.0-py3-none-win_amd64.whl
playwright-1.52.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for playwright-1.52.0-py3-none-win32.whl
playwright-1.52.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for playwright-1.52.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
playwright-1.52.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details for playwright-1.52.0-py3-none-manylinux1_x86_64.whl
playwright-1.52.0-py3-none-macosx_11_0_universal2.whl Python 3 none macOS 11.0+ universal2 (ARM64, x86-64) Details for playwright-1.52.0-py3-none-macosx_11_0_universal2.whl
playwright-1.52.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for playwright-1.52.0-py3-none-macosx_11_0_arm64.whl
playwright-1.52.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for playwright-1.52.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 307.2 MB

Release files / playwright-1.52.0-py3-none-win_arm64.whl

Download URL playwright-1.52.0-py3-none-win_arm64.whl
Size 30.7 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
9d0085b8de513de5fb50669f8e6677f0252ef95a9a1d2d23ccee9638e71e65cb
BLAKE2b-256 checksum
How to use checksums
b54f71a8a873e8c3c3e2d3ec03a578e546f6875be8a76214d90219f752f827cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.52.0-py3-none-win_amd64.whl

Download URL playwright-1.52.0-py3-none-win_amd64.whl
Size 34.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
dcbf75101eba3066b7521c6519de58721ea44379eb17a0dafa94f9f1b17f59e4
BLAKE2b-256 checksum
How to use checksums
51f3cca2aa84eb28ea7d5b85d16caa92d62d18b6e83636e3d67957daca1ee4c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.52.0-py3-none-win32.whl

Download URL playwright-1.52.0-py3-none-win32.whl
Size 34.8 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
cd0bdf92df99db6237a99f828e80a6a50db6180ef8d5352fc9495df2c92f9971
BLAKE2b-256 checksum
How to use checksums
7a81a850dbc6bc2e1bd6cc87341e59c253269602352de83d34b00ea38cf410ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.52.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL playwright-1.52.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 44.5 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
4173e453c43180acc60fd77ffe1ebee8d0efbfd9986c03267007b9c3845415af
BLAKE2b-256 checksum
How to use checksums
4ee90661d343ed55860bcfb8934ce10e9597fc953358773ece507b22b0f35c57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.52.0-py3-none-manylinux1_x86_64.whl

Download URL playwright-1.52.0-py3-none-manylinux1_x86_64.whl
Size 45.1 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d010124d24a321e0489a8c0d38a3971a7ca7656becea7656c9376bfea7f916d4
BLAKE2b-256 checksum
How to use checksums
73c68e27af9798f81465b299741ef57064c6ec1a31128ed297406469907dc5a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.52.0-py3-none-macosx_11_0_universal2.whl

Download URL playwright-1.52.0-py3-none-macosx_11_0_universal2.whl
Size 39.6 MB
Tags Python 3 macOS 11.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
7223960b7dd7ddeec1ba378c302d1d09733b8dac438f492e9854c85d3ca7144f
BLAKE2b-256 checksum
How to use checksums
a2ffeee8532cff4b3d768768152e8c4f30d3caa80f2969bf3143f4371d377b74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.52.0-py3-none-macosx_11_0_arm64.whl

Download URL playwright-1.52.0-py3-none-macosx_11_0_arm64.whl
Size 38.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0797c0479cbdc99607412a3c486a3a2ec9ddc77ac461259fd2878c975bcbb94a
BLAKE2b-256 checksum
How to use checksums
dc2357ff081663b3061a2a3f0e111713046f705da2595f2f384488a76e4db732
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / playwright-1.52.0-py3-none-macosx_10_13_x86_64.whl

Download URL playwright-1.52.0-py3-none-macosx_10_13_x86_64.whl
Size 39.6 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
19b2cb9d4794062008a635a99bd135b03ebb782d460f96534a91cb583f549512
BLAKE2b-256 checksum
How to use checksums
1e62a20240605485ca99365a8b72ed95e0b4c5739a13fb986353f72d8d3f1d27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Security for playwright 1.52.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.52.0 This release

8 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page
⌂ 换网址