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 147.0.7727.15 ✅ ✅ ✅
WebKit 26.4 ✅ ✅ ✅
Firefox 148.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.59.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.59.0
File Actions
playwright-1.59.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for playwright-1.59.0-py3-none-win_arm64.whl
playwright-1.59.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for playwright-1.59.0-py3-none-win_amd64.whl
playwright-1.59.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for playwright-1.59.0-py3-none-win32.whl
playwright-1.59.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for playwright-1.59.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
playwright-1.59.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details for playwright-1.59.0-py3-none-manylinux1_x86_64.whl
playwright-1.59.0-py3-none-macosx_11_0_universal2.whl Python 3 none macOS 11.0+ universal2 (ARM64, x86-64) Details for playwright-1.59.0-py3-none-macosx_11_0_universal2.whl
playwright-1.59.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for playwright-1.59.0-py3-none-macosx_11_0_arm64.whl
playwright-1.59.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for playwright-1.59.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 331.7 MB

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

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

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

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

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

Download URL playwright-1.59.0-py3-none-win32.whl
Size 37.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
6989c476be2b9cd3e24a18cc9dcf202e266fb3d91e3e5395cd668c54ea54b119
BLAKE2b-256 checksum
How to use checksums
72a1717ac5bc99f387c0f60def91271ea4262125c0815d764a5d1776a272275c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

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

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

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

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

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

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

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

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

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

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

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