Skip to main content

🎭 Playwright for Python PyPI version Anaconda version Join Slack

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 110.0.5481.38 ✅ ✅ ✅
WebKit 16.4 ✅ ✅ ✅
Firefox 108.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://whatsmyuseragent.org/')
        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://whatsmyuseragent.org/')
            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.30.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.30.0
File Actions
playwright-1.30.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for playwright-1.30.0-py3-none-win_amd64.whl
playwright-1.30.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for playwright-1.30.0-py3-none-win32.whl
playwright-1.30.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for playwright-1.30.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
playwright-1.30.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details for playwright-1.30.0-py3-none-manylinux1_x86_64.whl
playwright-1.30.0-py3-none-macosx_11_0_universal2.whl Python 3 none macOS 11.0+ universal2 (ARM64, x86-64) Details for playwright-1.30.0-py3-none-macosx_11_0_universal2.whl
playwright-1.30.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for playwright-1.30.0-py3-none-macosx_11_0_arm64.whl
playwright-1.30.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for playwright-1.30.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 210.4 MB

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

Download URL playwright-1.30.0-py3-none-win_amd64.whl
Size 27.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
198c1d816e802c4c9bc048232ec344f4bdfe3229e73a3a28a8eac33c46dab201
BLAKE2b-256 checksum
How to use checksums
d4195f2dd303ea3b48f160ecc1e1498164202da655b1f1feb350f804f39c70b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

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

Download URL playwright-1.30.0-py3-none-win32.whl
Size 27.1 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
07249da8375fa7d52cbcdbfc36f5773f91fa8305aa340215db173101d289e210
BLAKE2b-256 checksum
How to use checksums
2cb69c0fe7b2bad5ce2367c654fc47daedfb9b82239d85fbcba208dc25a9b583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

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

Download URL playwright-1.30.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 32.9 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
62032a1da59524a7f8d8cb4ed998cf793310b67693d3df94d00ceb13b5a9eced
BLAKE2b-256 checksum
How to use checksums
564f827e984ceac1e085e557b5072f0f7dddc78fe043674895373e05ff8cc945
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

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

Download URL playwright-1.30.0-py3-none-manylinux1_x86_64.whl
Size 32.9 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
24bb8fe1d7ae60ec971668812c0c6c21b2b12d320ff24da59cbb544a6a15a53c
BLAKE2b-256 checksum
How to use checksums
92752cb609948b5bf3284b87a0d4649739ebf88ed920686995cf266cc15cdbf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

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

Download URL playwright-1.30.0-py3-none-macosx_11_0_universal2.whl
Size 30.6 MB
Tags Python 3 macOS 11.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
115f5d77a21597200428411186ec72e10fed1cc4d7de3e6e705c415b781d344a
BLAKE2b-256 checksum
How to use checksums
cd455f03775b7f8024718da282d7652e152689b4efbe17957a184370d896f2f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

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

Download URL playwright-1.30.0-py3-none-macosx_11_0_arm64.whl
Size 29.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
228e07e1b2ef0790ec6d258897c50b83b0e8055b318fa2d33fcb86a8c5ba3525
BLAKE2b-256 checksum
How to use checksums
0fae8ecb7178ad8b6a4e911db324b77a975c40dd4f3c1c92d42258e16863d63f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

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

Download URL playwright-1.30.0-py3-none-macosx_10_13_x86_64.whl
Size 30.6 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
2ea5d88880fbfa69f05ab758ddd66310079828d6c5c8efe497485c341d147a4e
BLAKE2b-256 checksum
How to use checksums
4e9f288b071b2b678d6d43602e25e13de990527ecd3f242b2c5fdf7e638245d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

Security for playwright 1.30.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.30.0 This release

7 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
⌂ 换网址