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 138.0.7204.23
WebKit 18.5
Firefox 139.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.53.0-py3-none-win_arm64.whl (31.2 MB view details)

Uploaded Python 3Windows ARM64

playwright-1.53.0-py3-none-win_amd64.whl (35.4 MB view details)

Uploaded Python 3Windows x86-64

playwright-1.53.0-py3-none-win32.whl (35.4 MB view details)

Uploaded Python 3Windows x86

playwright-1.53.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (45.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

playwright-1.53.0-py3-none-manylinux1_x86_64.whl (45.8 MB view details)

Uploaded Python 3

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

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

playwright-1.53.0-py3-none-macosx_11_0_arm64.whl (38.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

playwright-1.53.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.53.0-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for playwright-1.53.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 fcfd481f76568d7b011571160e801b47034edd9e2383c43d83a5fb3f35c67885
MD5 85f7f1f932e2468e93cc78fd6a0ed49c
BLAKE2b-256 9a81b42ff2116df5d07ccad2dc4eeb20af92c975a1fbc7cd3ed37b678468b813

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.53.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 35.4 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.53.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d68975807a0fd997433537f1dcf2893cda95884a39dc23c6f591b8d5f691e9e8
MD5 681c0675add77864064b811002bac751
BLAKE2b-256 a9b54ca25974a90d16cfd4a9a953ee5a666cf484a0bdacb4eed484e5cab49e66

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.53.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 36eedec101724ff5a000cddab87dd9a72a39f9b3e65a687169c465484e667c06
MD5 2b86b4ce916050153694ab7a4fb76499
BLAKE2b-256 516328b3f2d36e6a95e88f033d2aa7af06083f6f4aa0d9764759d96033cd053e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.53.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9276c9c935fc062f51f4f5107e56420afd6d9a524348dc437793dc2e34c742e3
MD5 781047a628ea79582ebe1067793f8087
BLAKE2b-256 dc6b9942f86661ff41332f9299db4950623123e60ca71e4fb6e6942fc0212624

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.53.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 db19cb5b58f3b15cad3e2419f4910c053e889202fc202461ee183f1530d1db60
MD5 8c3cdf9e4aa78a742e42e88b00a7dfd8
BLAKE2b-256 92325d871c3753fbee5113eefc511b9e44c0006a27f2301b4c6bffa4346fbd94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.53.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 f765498341c4037b4c01e742ae32dd335622f249488ccd77ca32d301d7c82c61
MD5 b6b73120f2f5d8f6fb8bc67bdc8b1cea
BLAKE2b-256 4df3da18cd7c22398531316e58fd131243fd9156fe7765aae239ae542a5d07d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.53.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a701f9498a5b87e3f929ec01cea3109fbde75821b19c7ba4bba54f6127b94f76
MD5 3fbed639ff28d6ab7b8e517feee93741
BLAKE2b-256 acd5e8c57a4f6fd46059fb2d51da2d22b47afc886b42400f06b742cd4a9ba131

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.53.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 48a1a15ce810f0ffe512b6050de9871ea193b41dd3cc1bbed87b8431012419ba
MD5 a038fa23cfe98e52a33716c6df1d2852
BLAKE2b-256 f5e22f107be74419280749723bd1197c99351f4b8a0a25e974b9764affb940b2

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