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 121.0.6167.57
WebKit 17.4
Firefox 121.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.41.1-py3-none-win_amd64.whl (29.4 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.41.1-py3-none-win32.whl (29.4 MB view details)

Uploaded Python 3 Windows x86

playwright-1.41.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.1 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.41.1-py3-none-manylinux1_x86_64.whl (37.4 MB view details)

Uploaded Python 3

playwright-1.41.1-py3-none-macosx_11_0_universal2.whl (34.3 MB view details)

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

playwright-1.41.1-py3-none-macosx_11_0_arm64.whl (32.6 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.41.1-py3-none-macosx_10_13_x86_64.whl (34.3 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.41.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 316e1ba0854a712e9288b3fe49509438e648d43bade77bf724899de8c24848de
MD5 8b76134ddb698cd96d4899d4c3139ee8
BLAKE2b-256 71c8ff4e38c9f25cf9346781326bcb20199f7fa010ffd305bc2fa3dc484688e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.41.1-py3-none-win32.whl
  • Upload date:
  • Size: 29.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.41.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 ef769414ea0ceb76085c67812ab6bc0cc6fac0adfc45aaa09d54ee161d7f637b
MD5 dff537f50dbdaba77aa066e4507d0b8c
BLAKE2b-256 d1ab4d86e3d1a1af455b0ca277f471ad76d73aa424e69197cce30b0bf0d84c58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 475130f879b4ba38b9db7232a043dd5bc3a8bd1a84567fbea7e21a02ee2fcb13
MD5 b2bf7a9c1a7953cb0254fe44f82f2f61
BLAKE2b-256 31654573e4c7aad184a09c96cc48692ef234ce81abfa0fbf473cce6e60056103

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f227a8d616fd3a02d45d68546ee69947dce4a058df134a9e7dc6167c543de3cd
MD5 64603e8841091bc74b776027d3033c0f
BLAKE2b-256 5b572f104314c986805b183607919382344cac891d63a111fb66c9e795f7866a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.1-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 70c432887b8b5e896fa804fb90ca2c8baf05b13a3590fb8bce8b3c3efba2842d
MD5 a3589ed8876384437cafe27892deb3e7
BLAKE2b-256 94498de9553400bb805b847419b436315053c116b9d96ec4492cd0a092eefbd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53ff152506dbd8527aa815e92757be72f5df60810e8000e9419d29fd4445f53c
MD5 7c841def34808ec7a3bbf045abaad22c
BLAKE2b-256 5515e3fe0d105064477cb9857e661ce8eccd83fd4d186cd41e3f676a8bc77574

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.1-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b456f25db38e4d93afc3c671e1093f3995afb374f14cee284152a30f84cfff02
MD5 93a1563a7339e1a1f0c3735675f4d327
BLAKE2b-256 b0cf55c3dae4f9720c5e3004301c891e6c4613a4b05beca09ef48b542073fc84

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