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 94.0.4595.0 ✅ ✅ ✅
WebKit 15.0 ✅ ✅ ✅
Firefox 91.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://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.14.1

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

Total release size: 84.3 MB

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

Download URL playwright-1.14.1-py3-none-win_amd64.whl
Size 14.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1fda94b06c62750915ac30f40fd5244a690a3f569a90f7d1cef92304f5d3dded
BLAKE2b-256 checksum
How to use checksums
5a445e7b0c910ca43a74bcdb44a57499fbc19b367b12c068a3ef4a36e7af7802
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

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

Download URL playwright-1.14.1-py3-none-win32.whl
Size 13.3 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
fbf0413b31a016240bca070f9177bb4eb62fd00745f9df1b4f9fc39a0ba03b5b
BLAKE2b-256 checksum
How to use checksums
0666db2408ca6cfc4b0e9fa79a51bcf6aabf20336cbe19bc81ed34d278a355a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

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

Download URL playwright-1.14.1-py3-none-manylinux1_x86_64.whl
Size 20.2 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0ed8ae65e8a6cfab285abc500e2e1335c1200836c91316bf49a2bef4e4a40a66
BLAKE2b-256 checksum
How to use checksums
78e73e0cb3362c7d90b10457cc9a40fca4bfd9b5dcbe526be3f478d660436916
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

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

Download URL playwright-1.14.1-py3-none-macosx_11_0_universal2.whl
Size 18.0 MB
Tags Python 3 macOS 11.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
41f158a850af1e0a2b1a666e42edf56569606ce8bf27a7338dcbbe76f1ef69c2
BLAKE2b-256 checksum
How to use checksums
d761da5174f950143cce9315731d867f9bba4f51c7c9a0fd06624e36838856f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

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

Download URL playwright-1.14.1-py3-none-macosx_10_13_x86_64.whl
Size 18.0 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
537d72d20bf3a5d9b29d695fa063b2371083a5d1d445a6e497fc65b94691564b
BLAKE2b-256 checksum
How to use checksums
9585d3dda3bd5ed30418701cdf0e38c4cf486e23bac87fca2aeeafa07d5ee8ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Security for playwright 1.14.1

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.14.1 This release

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