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 139.0.7258.5 ✅ ✅ ✅
WebKit 26.0 ✅ ✅ ✅
Firefox 140.0.2 ✅ ✅ ✅

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.54.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.54.0
File Actions
playwright-1.54.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for playwright-1.54.0-py3-none-win_arm64.whl
playwright-1.54.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for playwright-1.54.0-py3-none-win_amd64.whl
playwright-1.54.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for playwright-1.54.0-py3-none-win32.whl
playwright-1.54.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for playwright-1.54.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
playwright-1.54.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details for playwright-1.54.0-py3-none-manylinux1_x86_64.whl
playwright-1.54.0-py3-none-macosx_11_0_universal2.whl Python 3 none macOS 11.0+ universal2 (ARM64, x86-64) Details for playwright-1.54.0-py3-none-macosx_11_0_universal2.whl
playwright-1.54.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for playwright-1.54.0-py3-none-macosx_11_0_arm64.whl
playwright-1.54.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for playwright-1.54.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 313.0 MB

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

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

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

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

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

Download URL playwright-1.54.0-py3-none-win32.whl
Size 35.5 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
0b108622ffb6906e28566f3f31721cd57dda637d7e41c430287804ac01911f56
BLAKE2b-256 checksum
How to use checksums
727a4ee60a1c3714321db187bebbc40d52cea5b41a856925156325058b5fca5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

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

Download URL playwright-1.54.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 45.3 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
13ae206c55737e8e3eae51fb385d61c0312eeef31535643bb6232741b41b6fdc
BLAKE2b-256 checksum
How to use checksums
02d46a692f4c6db223adc50a6e53af405b45308db39270957a6afebddaa80ea2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

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

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

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

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

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

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

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

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

Security for playwright 1.54.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.54.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
⌂ 换网址