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 143.0.7499.4
WebKit 26.0
Firefox 144.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

If you're not sure about the file name format, learn more about wheel file names.

playwright-1.57.0-py3-none-win_arm64.whl (32.8 MB view details)

Uploaded Python 3Windows ARM64

playwright-1.57.0-py3-none-win_amd64.whl (36.6 MB view details)

Uploaded Python 3Windows x86-64

playwright-1.57.0-py3-none-win32.whl (36.6 MB view details)

Uploaded Python 3Windows x86

playwright-1.57.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (45.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

playwright-1.57.0-py3-none-manylinux1_x86_64.whl (46.0 MB view details)

Uploaded Python 3

playwright-1.57.0-py3-none-macosx_11_0_universal2.whl (42.0 MB view details)

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

playwright-1.57.0-py3-none-macosx_11_0_arm64.whl (40.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

playwright-1.57.0-py3-none-macosx_10_13_x86_64.whl (42.0 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.57.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 5f065f5a133dbc15e6e7c71e7bc04f258195755b1c32a432b792e28338c8335e
MD5 f523e99231b8e1da3b70bcc6d7882906
BLAKE2b-256 6a60fe31d7e6b8907789dcb0584f88be741ba388413e4fbce35f1eba4e3073de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.57.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6caefb08ed2c6f29d33b8088d05d09376946e49a73be19271c8cd5384b82b14c
MD5 8263b05fb97274ff2f289e2fa5045834
BLAKE2b-256 58d4dcdfd2a33096aeda6ca0d15584800443dd2be64becca8f315634044b135b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.57.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 1dd93b265688da46e91ecb0606d36f777f8eadcf7fbef12f6426b20bf0c9137c
MD5 f5dd962f7cb1c56f74c789862eede1b6
BLAKE2b-256 e4093fc9ebd7c95ee54ba6a68d5c0bc23e449f7235f4603fc60534a364934c16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.57.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 38a1bae6c0a07839cdeaddbc0756b3b2b85e476c07945f64ece08f1f956a86f1
MD5 15fa8027ff9d7a5634d8426219e6bc60
BLAKE2b-256 83d7b72eb59dfbea0013a7f9731878df8c670f5f35318cedb010c8a30292c118

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.57.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 284ed5a706b7c389a06caa431b2f0ba9ac4130113c3a779767dda758c2497bb1
MD5 39ea7eafe2dd91335c84d6ca5e07b4d8
BLAKE2b-256 56613a803cb5ae0321715bfd5247ea871d25b32c8f372aeb70550a90c5f586df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.57.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 99104771abc4eafee48f47dac2369e0015516dc1ce8c409807d2dd440828b9a4
MD5 a9ea153616f06c0a11563a5bd7fcb43f
BLAKE2b-256 60bd5563850322a663956c927eefcf1457d12917e8f118c214410e815f2147d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.57.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4a9d65027bce48eeba842408bcc1421502dfd7e41e28d207e94260fa93ca67e
MD5 bdaec7115dc909ea3856af1fc0bf2747
BLAKE2b-256 8b04ef95b67e1ff59c080b2effd1a9a96984d6953f667c91dfe9d77c838fc956

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.57.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 9351c1ac3dfd9b3820fe7fc4340d96c0d3736bb68097b9b7a69bd45d25e9370c
MD5 2cbd669de6fd2f4a2bf9507893bed593
BLAKE2b-256 edb6e17543cea8290ae4dced10be21d5a43c360096aa2cce0aa7039e60c50df3

See more details on using hashes here.

Supported by

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