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 136.0.7103.25 โœ… โœ… โœ…
WebKit 18.4 โœ… โœ… โœ…
Firefox 137.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.52.0-py3-none-win_arm64.whl (30.7 MB view details)

Uploaded Python 3 Windows ARM64

playwright-1.52.0-py3-none-win_amd64.whl (34.8 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.52.0-py3-none-win32.whl (34.8 MB view details)

Uploaded Python 3 Windows x86

playwright-1.52.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (44.5 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.52.0-py3-none-manylinux1_x86_64.whl (45.1 MB view details)

Uploaded Python 3

playwright-1.52.0-py3-none-macosx_11_0_universal2.whl (39.6 MB view details)

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

playwright-1.52.0-py3-none-macosx_11_0_arm64.whl (38.0 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.52.0-py3-none-macosx_10_13_x86_64.whl (39.6 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.52.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 9d0085b8de513de5fb50669f8e6677f0252ef95a9a1d2d23ccee9638e71e65cb
MD5 870a32ac35f9845a894e7bad48ead1a3
BLAKE2b-256 b54f71a8a873e8c3c3e2d3ec03a578e546f6875be8a76214d90219f752f827cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.52.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 dcbf75101eba3066b7521c6519de58721ea44379eb17a0dafa94f9f1b17f59e4
MD5 d2b225ee3c58c2d4e3af8191d1dae591
BLAKE2b-256 51f3cca2aa84eb28ea7d5b85d16caa92d62d18b6e83636e3d67957daca1ee4c7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.52.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 cd0bdf92df99db6237a99f828e80a6a50db6180ef8d5352fc9495df2c92f9971
MD5 58488fd8add5618e2e3a93c581028a23
BLAKE2b-256 7a81a850dbc6bc2e1bd6cc87341e59c253269602352de83d34b00ea38cf410ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.52.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4173e453c43180acc60fd77ffe1ebee8d0efbfd9986c03267007b9c3845415af
MD5 b84e0685c648cb957f6ed5a866f094a9
BLAKE2b-256 4ee90661d343ed55860bcfb8934ce10e9597fc953358773ece507b22b0f35c57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.52.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d010124d24a321e0489a8c0d38a3971a7ca7656becea7656c9376bfea7f916d4
MD5 5c09f2dab9cdc79b9af44d7b4aa6801c
BLAKE2b-256 73c68e27af9798f81465b299741ef57064c6ec1a31128ed297406469907dc5a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.52.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 7223960b7dd7ddeec1ba378c302d1d09733b8dac438f492e9854c85d3ca7144f
MD5 cf6e10a682f7dc0e9b06a4e1cc55901f
BLAKE2b-256 a2ffeee8532cff4b3d768768152e8c4f30d3caa80f2969bf3143f4371d377b74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.52.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0797c0479cbdc99607412a3c486a3a2ec9ddc77ac461259fd2878c975bcbb94a
MD5 3bc927f4786fc995b8c69958feeca2b8
BLAKE2b-256 dc2357ff081663b3061a2a3f0e111713046f705da2595f2f384488a76e4db732

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.52.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 19b2cb9d4794062008a635a99bd135b03ebb782d460f96534a91cb583f549512
MD5 a2b5cdb00ef1d2dd661d44db49cffe71
BLAKE2b-256 1e62a20240605485ca99365a8b72ed95e0b4c5739a13fb986353f72d8d3f1d27

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