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

Total release size: 333.7 MB

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

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

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

Download URL playwright-1.60.0-py3-none-win_amd64.whl
Size 37.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
9566821ce6030a1f9e7146a24e19355ab0d98805fd0f9be50bb3d8fef1750c02
BLAKE2b-256 checksum
How to use checksums
55f00541524133104f9cc20bf900870ff4a736b76a23483f3a55295ddfa58409
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

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

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

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

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

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

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

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

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

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

Download URL playwright-1.60.0-py3-none-macosx_11_0_arm64.whl
Size 42.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
39b5420ba6145045b69ced4c5c47d4d9fe5bddfc8ff816c518913afcb25ec7a5
BLAKE2b-256 checksum
How to use checksums
597be1d32ae8a3ed937ec2be3721c5f728b13d731a0b7c6442e0b3bec5094ac0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

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

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

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