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 140.0.7339.16
WebKit 26.0
Firefox 141.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


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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3Windows x86

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3

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

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

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

Uploaded Python 3macOS 11.0+ ARM64

playwright-1.55.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.55.0-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for playwright-1.55.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 012dc89ccdcbd774cdde8aeee14c08e0dd52ddb9135bf10e9db040527386bd76
MD5 8a8df94458dc996312fa67b8e778c551
BLAKE2b-256 21985ca173c8ec906abde26c28e1ecb34887343fd71cc4136261b90036841323

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.55.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.55.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7eb5956473ca1951abb51537e6a0da55257bb2e25fc37c2b75af094a5c93736c
MD5 284af29ea6543e9f5c8f6ba51e611eb7
BLAKE2b-256 464f9ba607fa94bb9cee3d4beb1c7b32c16efbfc9d69d5037fa85d10cafc618b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.55.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.55.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 29e6d1558ad9d5b5c19cbec0a72f6a2e35e6353cd9f262e22148685b86759f90
MD5 5b10abeef21af670672728b94c4b2bc9
BLAKE2b-256 062e9db64518aebcb3d6ef6cd6d4d01da741aff912c3f0314dadb61226c6a96a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.55.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 29a0777c4ce1273acf90c87e4ae2fe0130182100d99bcd2ae5bf486093044838
MD5 d3a1baf0ac23531d79a09601584d1c3b
BLAKE2b-256 8383b8d06a5b5721931aa6d5916b83168e28bd891f38ff56fe92af7bdee9860f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.55.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c6d4d8f6f8c66c483b0835569c7f0caa03230820af8e500c181c93509c92d831
MD5 64c0c862888d7cda0725e65acbebe0c2
BLAKE2b-256 0833858312628aa16a6de97839adc2ca28031ebc5391f96b6fb8fdf1fcb15d6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.55.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 25b0d6b3fd991c315cca33c802cf617d52980108ab8431e3e1d37b5de755c10e
MD5 3b4cae888fd20d13ad293c1f82725cc9
BLAKE2b-256 4a6448b2837ef396487807e5ab53c76465747e34c7143fac4a084ef349c293a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.55.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8290cf27a5d542e2682ac274da423941f879d07b001f6575a5a3a257b1d4ba1c
MD5 09514e5bfd9a5b9f53ae26261a6060a6
BLAKE2b-256 cff5bdb61553b20e907196a38d864602a9b4a461660c3a111c67a35179b636fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.55.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 d7da108a95001e412effca4f7610de79da1637ccdf670b1ae3fdc08b9694c034
MD5 62297d24356bad33a19769dd949d4b8d
BLAKE2b-256 803ac81ff76df266c62e24f19718df9c168f49af93cabdbc4608ae29656a9986

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