Skip to main content

A high-level API to automate web browsers

Project description

🎭 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 120.0.6099.28
WebKit 17.4
Firefox 119.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://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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

playwright-1.40.0-py3-none-win_amd64.whl (29.3 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.40.0-py3-none-win32.whl (29.3 MB view details)

Uploaded Python 3 Windows x86

playwright-1.40.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.0 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.40.0-py3-none-manylinux1_x86_64.whl (37.2 MB view details)

Uploaded Python 3

playwright-1.40.0-py3-none-macosx_11_0_universal2.whl (34.2 MB view details)

Uploaded Python 3 macOS 11.0+ universal2 (ARM64, x86-64)

playwright-1.40.0-py3-none-macosx_11_0_arm64.whl (32.5 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.40.0-py3-none-macosx_10_13_x86_64.whl (34.2 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

Details for the file playwright-1.40.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for playwright-1.40.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ba5a89953aedb158025e4581eafb6fdeebb3d58acd9ce24b59f691b1e2a861bc
MD5 04689f1dd08393a81d1812e19e505755
BLAKE2b-256 3432e2d92c763493dd614a9e65bbf0ceaf62de9c4bdebe5df39e63b0c736b795

See more details on using hashes here.

File details

Details for the file playwright-1.40.0-py3-none-win32.whl.

File metadata

  • Download URL: playwright-1.40.0-py3-none-win32.whl
  • Upload date:
  • Size: 29.3 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for playwright-1.40.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 3ae90ea5ad776fe5e1300a9c730244c8e57a183c6eb261044418710d51ae03c0
MD5 a67e6a85c5a783a30ded7879df0b431c
BLAKE2b-256 ad3c8795fac8f606cb09a9dcf94993eb8bf6eae60f8d4846c3088b977d2d6f44

See more details on using hashes here.

File details

Details for the file playwright-1.40.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for playwright-1.40.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4ec3746de69e7ba912b70e0fe3a3c6b8af97f21ece793c5db27c251da4d2f3e6
MD5 479b43eb095479823bd93cf25f52621a
BLAKE2b-256 e13f871db50c0aaf8d7764d0b53de28dcdd00c5ee1c32e27452a60a6da606130

See more details on using hashes here.

File details

Details for the file playwright-1.40.0-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for playwright-1.40.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6a842dca4dd53feda1d7bd0e14aa65140e4e816452ebddd307e90cad184d92bd
MD5 0ffe2b9367cc4de7d866e1cb5e184215
BLAKE2b-256 7b5ac99ee6e0e093d1e639cd432ae40b700b550594925873f66cf29bb1174625

See more details on using hashes here.

File details

Details for the file playwright-1.40.0-py3-none-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for playwright-1.40.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 f11e1ec32f3b3dbd7f24d1481c313cb527001955004ee88a73f9b4a610d0db28
MD5 0cbf4c65ab996fbf77da260f82eb621f
BLAKE2b-256 6cd6604b4c9d58ea6e9d7b08f31a57c671c44c768325f6079e42cba78197b550

See more details on using hashes here.

File details

Details for the file playwright-1.40.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for playwright-1.40.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 382a7465cc0ea3bf7fa66716bd37fd53f66af4bcc5c72283a8eff3f6e87758a8
MD5 c322bf141a3385a6b4ac5842c30fa6ee
BLAKE2b-256 24ee2c23cadbc0018ccfd5d7a783cc87c3cb3a63eec5444e12406e2ecc5482ec

See more details on using hashes here.

File details

Details for the file playwright-1.40.0-py3-none-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for playwright-1.40.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 35b7e0b389df2aa632f3614d35be7bace35f6f634d880db44b035c83e4481312
MD5 1591c0b9568acf36656300c5d01f8c30
BLAKE2b-256 a7015896c1c4023a6aade1ae00237c2d77921f0761ba893e9c28da29f63f0233

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page