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 131.0.6778.33
WebKit 18.2
Firefox 132.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.49.0-py3-none-win_amd64.whl (34.0 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.49.0-py3-none-win32.whl (34.0 MB view details)

Uploaded Python 3 Windows x86

playwright-1.49.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (43.7 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.49.0-py3-none-manylinux1_x86_64.whl (44.1 MB view details)

Uploaded Python 3

playwright-1.49.0-py3-none-macosx_11_0_universal2.whl (39.5 MB view details)

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

playwright-1.49.0-py3-none-macosx_11_0_arm64.whl (38.8 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.49.0-py3-none-macosx_10_13_x86_64.whl (39.5 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.49.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 34d28a2c2d46403368610be4339898dc9c34eb9f7c578207b4715c49743a072a
MD5 eadd7fe1f58f7749c7b9f1512de796e4
BLAKE2b-256 0550cb04aadb200dc50c2013220dc10370a0c4024853122872c13071b4170440

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.49.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 91103de52d470594ad375b512d7143fa95d6039111ae11a93eb4fe2f2b4a4858
MD5 448d9f91bfed9c5e0b5afdef443d3d3b
BLAKE2b-256 4399328495cf8bcc98266fbe1a52f52f4d348911ed30cafd6b6eb74745ef8be5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.49.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7f12d2aecdb41fc25a624cb15f3e8391c252ebd81985e3d5c1c261fe93779345
MD5 29d0d95588dc2770cda469a0c0904cef
BLAKE2b-256 58998570be7aca5f9b3ad5d836c33f11fe683fff2364fcfd076b6d0b5335966d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.49.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 68d94beffb3c9213e3ceaafa66171affd9a5d9162e0c8a3eed1b1132c2e57598
MD5 69515c61129289529c8560aa628fa652
BLAKE2b-256 b5d8bacfdfd89f2cb50583fa5a5b851bb940d7750a86388e125f759d8ffd9681

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.49.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 37ae985309184472946a6eb1a237e5d93c9e58a781fa73b75c8751325002a5d4
MD5 1281422f4452d55986c4f01c429756d0
BLAKE2b-256 e09576788b54751dc8292e7f2141d7792dcb868344aee605fdc3282899345335

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.49.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e453f02c4e5cc2db7e9759c47e7425f32e50ac76c76b7eb17c69eed72f01c4d8
MD5 728a73bd58a16667814d622fa4970b6b
BLAKE2b-256 e2e5fd4f1bdfa0dab6c929a73de9f181d3e00b97cd56db9d9a49e80ac30cee38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.49.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 704532a2d8ba580ec9e1895bfeafddce2e3d52320d4eb8aa38e80376acc5cbb0
MD5 7cba99c96785b54f193c738548fd8148
BLAKE2b-256 8ab362748059c66e3ed03a6638debe01162ae631c4553504fd533f1d4841f5aa

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