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 98.0.4695.0 ✅ ✅ ✅
WebKit 15.4 ✅ ✅ ✅
Firefox 94.0.1 ✅ ✅ ✅

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

Total release size: 212.7 MB

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

Download URL playwright-1.17.1-py3-none-win_amd64.whl
Size 27.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a8ca9e0e4ea4af07299c0743f87c23e04f989bba37f5ae141bdaa40e720c8b1a
BLAKE2b-256 checksum
How to use checksums
04ccfd92432ef09794ed748abbc9399a5f3ddec65eeebd104412f13f70674345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL playwright-1.17.1-py3-none-win32.whl
Size 27.5 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
b4b817a7bae14a99a3e43a9eba706d164ae5f6f48c18f3ebb6dfc09790669f07
BLAKE2b-256 checksum
How to use checksums
d892b35396a1cea8f865deb6512e555722da34200a0426a952fcae6856d2f6f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL playwright-1.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 33.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
2301bf64a0ba4ffb2ccf89ce973983290b44ce9a0102d9695d317eee01021154
BLAKE2b-256 checksum
How to use checksums
13bbcb218ed67c955fc9fb61fdb136eee021223ddea83d7cb1d765c9ce0e9320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL playwright-1.17.1-py3-none-manylinux1_x86_64.whl
Size 33.3 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5d87b9a9c0a20de66f52142231cdadad4fc88ce6c6ee213107374ce063362976
BLAKE2b-256 checksum
How to use checksums
7d6b984a2db9f8b214ba20871ead70412839b354a614894680bb4b6fb4277ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL playwright-1.17.1-py3-none-macosx_11_0_universal2.whl
Size 30.9 MB
Tags Python 3 macOS 11.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
41bbcacf6aca27eee0bc89dd3faa1e0f7e72ee6dc4036eb8af89c81f4848dd25
BLAKE2b-256 checksum
How to use checksums
018b3a10105e3ca032a907e49033cce0b6a317991b0fa1a507e64d245ca626ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL playwright-1.17.1-py3-none-macosx_11_0_arm64.whl
Size 29.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
362e8db85bc23e6ae576183bca98fcf1a7ac1c32d0b774fe437cc087a400ae0a
BLAKE2b-256 checksum
How to use checksums
bc7c7145d46c6559a1250ba0010df240393570ca45ee83dd35e808efce84f19f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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

Download URL playwright-1.17.1-py3-none-macosx_10_13_x86_64.whl
Size 30.9 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
2196dc65d263a8efccedbbe584d6b46d45b8cfa08eeaefbea4378628b1f796a7
BLAKE2b-256 checksum
How to use checksums
b8b5267ddfaccc839eb83dd96c229fecd17bcda2d08094e4525021f90dabffc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

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