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 119.0.6045.9
WebKit 17.4
Firefox 118.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://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.39.0-py3-none-win_amd64.whl (29.2 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.39.0-py3-none-win32.whl (29.2 MB view details)

Uploaded Python 3 Windows x86

playwright-1.39.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (35.4 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.39.0-py3-none-manylinux1_x86_64.whl (35.5 MB view details)

Uploaded Python 3

playwright-1.39.0-py3-none-macosx_11_0_universal2.whl (33.0 MB view details)

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

playwright-1.39.0-py3-none-macosx_11_0_arm64.whl (31.4 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.39.0-py3-none-macosx_10_13_x86_64.whl (33.0 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.39.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a420d814e21b05e1156747e2a9fae6c3cca2b46bb4a0226fb26ee65538ce09c9
MD5 5671533365d9918e17c2c641a0189da3
BLAKE2b-256 049817748e2d8f50428772232befdf6d55edccb8606c427203b849cf2b05031c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.39.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 40ed7f2546c64f1bb3d22b2295b4d43ed5a2f0b7ea7599d93a72f723a1883e1e
MD5 34cb41fc2ebb52e05b9117d0a8f7fd4a
BLAKE2b-256 cf78ca1493e84b3752c7bf7e0812a29425727b448b54719fd3b3e391372efbc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.39.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 654bb3ae0dc3c69ffddc0c38c127c3b8e93032d8cf3928e2c4f21890cb39514b
MD5 9a86daad9dde776f9615593a5e576836
BLAKE2b-256 78f59d42131797f2bbad57cf029a76e1e9ba55227a7884da58cc6811d3a24509

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.39.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 699a8e707ca5f3567aa28223ee1be7e42d2bf25eda7d3d86babda71e36e5f16f
MD5 2719ed1c9c6a3da8a8e23d3e8a765383
BLAKE2b-256 587cfca2b190e04984439f0dc0c79cc71c49191ab4ceef5597bf4b2c1d52b655

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.39.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 d2fd90f370599cf9a2c6a041bd79a5eeec62baf0e943c7c5c2079b29be476d2a
MD5 0020451d8a697fc02eb8604a2b440035
BLAKE2b-256 1cb37950e87f1d3898c4667d37277c5ceaf2f0a80fd3e467b4acc105246f15b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.39.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2c3634411828d9273196ed6f69f2fa7645c89732b3c982dcf09ab03ed4c5d2b
MD5 c4d0199822c2c7732ed1f8ee7c2389da
BLAKE2b-256 ae2e02e6b2b7bb68c96d69b52c70029607e156507ac956e12370d082c22cfc2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.39.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 384e195a6d09343f319031cf552e9cd601ede78fe9c082b9fa197537c5cbfe7a
MD5 52b30941d5549516a8c3c0bb6d738226
BLAKE2b-256 b7e125cb1f5b4279e542e2a36882856fa845b83bc454d1029bd71d936da97ff2

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