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 125.0.6422.26
WebKit 17.4
Firefox 125.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.44.0-py3-none-win_amd64.whl (29.7 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.44.0-py3-none-win32.whl (29.7 MB view details)

Uploaded Python 3 Windows x86

playwright-1.44.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.6 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.44.0-py3-none-manylinux1_x86_64.whl (37.8 MB view details)

Uploaded Python 3

playwright-1.44.0-py3-none-macosx_11_0_universal2.whl (34.7 MB view details)

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

playwright-1.44.0-py3-none-macosx_11_0_arm64.whl (33.0 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.44.0-py3-none-macosx_10_13_x86_64.whl (34.7 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.44.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5b8a4a1d4d50f4ff99b47965576322a8c4e34631854b862a25c1feb824be22a8
MD5 f1d37e6fb188bffcd65d9385259a78b8
BLAKE2b-256 e6f9724595acdb66622ced0919e0e714a8ec3228d9b38827f61721126645912f

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for playwright-1.44.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 235e37832deaa9af8a629d09955396259ab757533cc1922f9b0308b4ee0d9cdf
MD5 5398fb671f03e26fec205616b7b67d1a
BLAKE2b-256 075c4e3c1c9bafe11aca80446fedde2e563c6ecd6690c46d6def0d3fae5ac7e2

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.44.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f8c8a3bfea17576d3f94a2363eee195cbda8dbba86975588c7eaac7792b25eee
MD5 90fb02a672799addb6ba60b83559a2dc
BLAKE2b-256 d0c019655639651722867cb78b21c5617545e14f2f5133097b7e3595d56aa379

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.44.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 29161b1fae71f7c402df5b15f0bd3deaeecd8b3d1ecd9ff01271700c66210e7b
MD5 4b7b71e2cd73a6149cf4f1a93be95552
BLAKE2b-256 5a8e2d6e29fe0d5f6d1ca55de8a6a737b6086b1f59f4b7519d3abb4944f67008

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.44.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 64b67194e73b47ae72acf25f1a9cfacfef38ca2b52e4bb8b0abd385c5deeaadf
MD5 c0c6ca3a4b49454414f8a37d9105b573
BLAKE2b-256 162c87b865dafed50d9111640d8134ac1c3264782ec7a12f026ec29c27d01a26

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.44.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54d44fb634d870839301c2326e1e12a178a1be0de76d0caaec230ab075c2e077
MD5 8e71281eb47e600c1ad74a0970045cc6
BLAKE2b-256 817b7dfbcdc44d08d0257e1e614d17a942b6915021bc1f72a671d51b4c8b8084

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for playwright-1.44.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c2317a80896796fdeb03d60f06cc229e775ff2e19b80c64b1bb9b29c8a59d992
MD5 5bfd881b46cac2def08071f9cffd1103
BLAKE2b-256 6e4ee4b176c545ef25829ac66148f659a7e4e49bdc1d2e5fb4083ada772fe4d6

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