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 147.0.7727.15
WebKit 26.4
Firefox 148.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.59.0-py3-none-win_arm64.whl (34.0 MB view details)

Uploaded Python 3Windows ARM64

playwright-1.59.0-py3-none-win_amd64.whl (37.7 MB view details)

Uploaded Python 3Windows x86-64

playwright-1.59.0-py3-none-win32.whl (37.7 MB view details)

Uploaded Python 3Windows x86

playwright-1.59.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (46.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

playwright-1.59.0-py3-none-manylinux1_x86_64.whl (47.2 MB view details)

Uploaded Python 3

playwright-1.59.0-py3-none-macosx_11_0_universal2.whl (43.2 MB view details)

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

playwright-1.59.0-py3-none-macosx_11_0_arm64.whl (41.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

playwright-1.59.0-py3-none-macosx_10_13_x86_64.whl (43.2 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.59.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 93581ad515728cadc8af39b288a5633ba6d36e7d72048e79d890ce01ea2156f9
MD5 80778f03234af2c07d31a1c1bf98f518
BLAKE2b-256 eb0c3ece41761ba13c8321009aefcaec7a016eb42799c42eef5e03ace7f2de5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.59.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 37.7 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.59.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d5a5cc064b82ca92996080025710844e417f44df8fda9001102c28f44174171c
MD5 22552db79c5c0596d3207e5639ee13e8
BLAKE2b-256 0fa54e630ee05d8b46b840f943268e86d6063703e8dadb2d3eb405c7b9b2e48c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.59.0-py3-none-win32.whl
  • Upload date:
  • Size: 37.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.59.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 6989c476be2b9cd3e24a18cc9dcf202e266fb3d91e3e5395cd668c54ea54b119
MD5 e20dacafcec1b0ee16225aa72cf49c5e
BLAKE2b-256 72a1717ac5bc99f387c0f60def91271ea4262125c0815d764a5d1776a272275c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.59.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8c881a19377d2b900af855fb525b5f22a27bf3cfbecba6d1edb36766d56cb100
MD5 0d995feac1bf4b78eb3c8cdb5b7412cc
BLAKE2b-256 a32d15f72288cb65d690134e18fefb9483cc4976f7579b580648c45e494481a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.59.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c5792aad9e22b91a09264b9edbc18553cf05ea5a39404d65dc19a012c6b2e51d
MD5 5493e20fde58a25d736e24a574391153
BLAKE2b-256 730c1e513d37c5be07d12829ebce93dbfe7baee230084cb66966c423432799c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.59.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 4a4a2d4842b0e4120de3fa48636e4b69085a05b81d8a35ad4353f530ade72ed6
MD5 df43aaee2bf1cb93172b4fd51eee5977
BLAKE2b-256 8091fd219aa78ca03d37e93aaedaed4e224131e3090a9264f9bb773c8271d67e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.59.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af068143a0c045ec11608b67d6c42e58db7e9cf65a742dd21fddedc1a9802c47
MD5 0e27d4b92581da5116661c0a74852820
BLAKE2b-256 08715e4d98b2ce3641b4343623c6450ff33b9de1c979d12a957505e392338b07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.59.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 bfc6940100b57423175c819ce2422ec5880d55fa2769987f62ab7a1f5fe6783e
MD5 263bc0af15d4e4e2d1d97f445a2cde37
BLAKE2b-256 5b48abab23f40643b4de8f2665816f0a1bf0994eeecda39d6d62f0f292b2ad01

See more details on using hashes here.

Supported by

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