Skip to main content

A high-level API to automate web browsers

Project description

🎭 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 117.0.5938.62
WebKit 17.0
Firefox 117.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.38.0-py3-none-win_amd64.whl (29.1 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.38.0-py3-none-win32.whl (29.1 MB view details)

Uploaded Python 3 Windows x86

playwright-1.38.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (35.3 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.38.0-py3-none-manylinux1_x86_64.whl (35.4 MB view details)

Uploaded Python 3

playwright-1.38.0-py3-none-macosx_11_0_universal2.whl (33.1 MB view details)

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

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

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.38.0-py3-none-macosx_10_13_x86_64.whl (33.1 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.38.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 801029161725bd9a8c1ea2d29125074f7e54bfa7b0ef85c6dfb667023a0702c8
MD5 64e22d204016a30cf8c178e35e3fa782
BLAKE2b-256 616842f5eae2bdc06e6274cde931add3a076fdf18fdbaddda11c61eb95cd88b8

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for playwright-1.38.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 1c46a7ed7702b9f97b57737132f25e2052ef2e9541c3613d896e92739d2ea4ee
MD5 0d6ec5b2e4784162d6b1099b4ced430e
BLAKE2b-256 834abe5e34171c55f1ac0246a177add83933ac50898bb54db858155e15a264d4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.38.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 33d6500d94c5e4608d3a74372d6f50ecbebca55dc55eaee3f70b21eaf02b17aa
MD5 b3d34e1ed47bc64d508801e1709cbc5a
BLAKE2b-256 3cdc0ebfe0c9050da64efe036fe2938ab13d5a46bfb47c1f851858d10ce6022d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.38.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d0288c8932d7f14bc231e4a6761ecf76fff879d1601cfa3b6f6aefd544468911
MD5 79d0a23742e575daf00c5f36bc7d9184
BLAKE2b-256 28ae19318074f87b4c3c0b0f45ee5a41bbcf013b7d46ce235d018adb1da97f7b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.38.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 ce5c2d2c49c97ea856129ac895dc7277df3c877db4a998340bd08efc3696e7fb
MD5 bdfd5a7145ac6cfd90497399c0bbd5f4
BLAKE2b-256 0b3947b46c5ef5eb5b7cf8ebf0417c9be6330daed9576748bbd01a1330546cd1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.38.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 324e317c6ddc919a01e98ed182a54c88c0b6e775e91aea2996ed320b436c0f27
MD5 189b68302cb88b1c3654bc0b80c034bc
BLAKE2b-256 e1b0c59fcdda1a05cdfce282ba5c410d57e696aec614bba9a4f5c43bee7731fc

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.38.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 22e4a49d61a20a21d6a4a90891d4d08df5091f3719272d7a31c4c7f0ff436683
MD5 6a0a361330ffd66abe4751969ee83280
BLAKE2b-256 3f0d4b433d7d740d3ab7e2ca0d3de6db500a6b20fe49001388d5b25d6740982d

See more details on using hashes here.

Provenance

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