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 139.0.7258.5
WebKit 26.0
Firefox 140.0.2

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


Release history Release notifications | RSS feed

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.54.0-py3-none-win_arm64.whl (31.2 MB view details)

Uploaded Python 3Windows ARM64

playwright-1.54.0-py3-none-win_amd64.whl (35.5 MB view details)

Uploaded Python 3Windows x86-64

playwright-1.54.0-py3-none-win32.whl (35.5 MB view details)

Uploaded Python 3Windows x86

playwright-1.54.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (45.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

playwright-1.54.0-py3-none-manylinux1_x86_64.whl (45.9 MB view details)

Uploaded Python 3

playwright-1.54.0-py3-none-macosx_11_0_universal2.whl (40.4 MB view details)

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

playwright-1.54.0-py3-none-macosx_11_0_arm64.whl (38.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

playwright-1.54.0-py3-none-macosx_10_13_x86_64.whl (40.4 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

Details for the file playwright-1.54.0-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for playwright-1.54.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 a975815971f7b8dca505c441a4c56de1aeb56a211290f8cc214eeef5524e8d75
MD5 e8a7a7b59dfaf3a8f2030c21891a2697
BLAKE2b-256 33ff99a6f4292a90504f2927d34032a4baf6adb498dc3f7cf0f3e0e22899e310

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.54.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9e5aee9ae5ab1fdd44cd64153313a2045b136fcbcfb2541cc0a3d909132671a2
MD5 f971cbc64768bb525ddb745e048b6cbd
BLAKE2b-256 aa778f8fae05a242ef639de963d7ae70a69d0da61d6d72f1207b8bbf74ffd3e7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.54.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 0b108622ffb6906e28566f3f31721cd57dda637d7e41c430287804ac01911f56
MD5 ef2c463e0165ebf7f2cf7a485a438ba7
BLAKE2b-256 727a4ee60a1c3714321db187bebbc40d52cea5b41a856925156325058b5fca5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.54.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 13ae206c55737e8e3eae51fb385d61c0312eeef31535643bb6232741b41b6fdc
MD5 c91dcd021b8a2917b7edcf765a565300
BLAKE2b-256 02d46a692f4c6db223adc50a6e53af405b45308db39270957a6afebddaa80ea2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.54.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 09919f45cc74c64afb5432646d7fef0d19fff50990c862cb8d9b0577093f40cc
MD5 365ff178f9a30971f749188ceaaabdce
BLAKE2b-256 34a945084fd23b6206f954198296ce39b0acf50debfdf3ec83a593e4d73c9c8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.54.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 81d0b6f28843b27f288cfe438af0a12a4851de57998009a519ea84cee6fbbfb9
MD5 c417dfcb319b56f9bc151317e3932110
BLAKE2b-256 73a17aa8ae175b240c0ec8849fcf000e078f3c693f9aa2ffd992da6550ea0dff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.54.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 780928b3ca2077aea90414b37e54edd0c4bbb57d1aafc42f7aa0b3fd2c2fac02
MD5 b3b9f277e019a38c0285997161852bca
BLAKE2b-256 e17b51882dc584f7aa59f446f2bb34e33c0e5f015de4e31949e5b7c2c10e54f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.54.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 bf3b845af744370f1bd2286c2a9536f474cc8a88dc995b72ea9a5be714c9a77d
MD5 5bb20cd4d2f0a10ee5c6bc7097ff1233
BLAKE2b-256 f30933d5bfe393a582d8dac72165a9e88b274143c9df411b65ece1cc13f42988

See more details on using hashes here.

Supported by

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