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 93.0.4576.0 ✅ ✅ ✅
WebKit 14.2 ✅ ✅ ✅
Firefox 90.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.13.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.13.0
File Actions
playwright-1.13.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for playwright-1.13.0-py3-none-win_amd64.whl
playwright-1.13.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for playwright-1.13.0-py3-none-win32.whl
playwright-1.13.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details for playwright-1.13.0-py3-none-manylinux1_x86_64.whl
playwright-1.13.0-py3-none-macosx_11_0_universal2.whl Python 3 none macOS 11.0+ universal2 (ARM64, x86-64) Details for playwright-1.13.0-py3-none-macosx_11_0_universal2.whl
playwright-1.13.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for playwright-1.13.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 84.8 MB

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

Download URL playwright-1.13.0-py3-none-win_amd64.whl
Size 15.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c0172389160956518e76a43750b7b14504d4dd62b96f239ec517fa77a6c5d992
BLAKE2b-256 checksum
How to use checksums
7e342aeed1102a56bee3a50ec5e68f3a0d6671bb8b95397a5f720fbb70610635
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

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

Download URL playwright-1.13.0-py3-none-win32.whl
Size 13.4 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
f819cb4f3f7f1edd34ec7eba58ed02923b87171c2217cfd1bbbabc7225c8d4e8
BLAKE2b-256 checksum
How to use checksums
6051d831ff40c9e4727d9fbe8a805199f3f368e7ff0c2ec605d4c6ca842871b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

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

Download URL playwright-1.13.0-py3-none-manylinux1_x86_64.whl
Size 20.3 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
05a599c6f9f695f99214b088e116cbe91b8cf3ab4d19614f69be886fa91393fc
BLAKE2b-256 checksum
How to use checksums
b5085138fbe083552b80b3e61c4872c71ddea8b0db7b89f4661567db94fd7e2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

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

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

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

Download URL playwright-1.13.0-py3-none-macosx_10_13_x86_64.whl
Size 18.1 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
919e1f6446839fb7763fbea19a23ddce3fb108ff13e9a3ef288cdf5a221ef9f6
BLAKE2b-256 checksum
How to use checksums
b78232169269dc43717e20a28108352067854ce6b55b1509b84f89548206fd78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

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