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 128.0.6613.18
WebKit 18.0
Firefox 128.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


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.46.0-py3-none-win_amd64.whl (29.8 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.46.0-py3-none-win32.whl (29.8 MB view details)

Uploaded Python 3 Windows x86

playwright-1.46.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.7 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.46.0-py3-none-manylinux1_x86_64.whl (37.9 MB view details)

Uploaded Python 3

playwright-1.46.0-py3-none-macosx_11_0_universal2.whl (34.8 MB view details)

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

playwright-1.46.0-py3-none-macosx_11_0_arm64.whl (33.1 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.46.0-py3-none-macosx_10_13_x86_64.whl (34.8 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.46.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f14a7fd7e24e954eec6ce61d787d499e41937ade811a0818e9a088aabe28ebb6
MD5 6fb0f4b9a54438f09cf986f90d6dc5fc
BLAKE2b-256 ba27b5f21695ee2ea32fdf826e531066e5633e1056171e217bac3daeefa46017

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.46.0-py3-none-win32.whl
  • Upload date:
  • Size: 29.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.46.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 85f44dd32a23d02850f0ff4dafe51580e5199531fff5121a62489d9838707782
MD5 36183cdf605a3ff0377eef0177e33156
BLAKE2b-256 55cc3de814e8e7540d9c6d1b131c5e4457d5a3a56880b3a20235cfe94bbdfef7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.46.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 23580f6a3f99757bb9779d29be37144cb9328cd9bafa178e6db5b3ab4b7faf4c
MD5 a48c16a6fdab1b994ece40b968d5d478
BLAKE2b-256 1fac4df6b6c12bbfbcfd2d2f1c59645ff99732852e920027b877c7c775341ca0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.46.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3b418509f45879f1403d070858657a39bd0b333b23d92c37355682b671726df9
MD5 ce31d9336e4ab6660168764cc241d56b
BLAKE2b-256 754f0a410deb48a0ff93107884a6cf06bbdbc97571f41b49e06cf7673c192264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.46.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 f5acfec1dbdc84d02dc696a17a344227e66c91413eab2036428dab405f195b82
MD5 3c0bba4932937faada53255cfed8024b
BLAKE2b-256 9fc98d0381489d082f86246579a4d51b20ccd6b5b6e570e809fd103b63d1b9bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.46.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73dcfc24834f4d004bc862ed0d74b4c1406793a8164734238ad035356fddc8ac
MD5 f66ab34b7b87b1586442baf7898c1e7b
BLAKE2b-256 98d250db19ce9b25c2033a6836b5a4eacb7f4be1adff63cfb4c58b46a9eb04ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.46.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 fa60b95c16f6ce954636229a6c9dd885485326bca52d5ba20d02c0bc731a2bbb
MD5 2b194f274fef2f9d80a86a3de01421a8
BLAKE2b-256 898fcf024e7cd4f1f365fea772b7fdde21e421fcd5c0c206bc7cb1c4866cdfbe

See more details on using hashes here.

Supported by

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