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 123.0.6312.4
WebKit 17.4
Firefox 123.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.42.0-py3-none-win_amd64.whl (29.4 MB view details)

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

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

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

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

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

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

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.42.0-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.42.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for playwright-1.42.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e092c6cfbf797bff03fbdfc53c3e6a9e29fbcf6b82f9e43113d37494aee0561b
MD5 3283e61ca6718e50e6894f3a27230245
BLAKE2b-256 68c749a1d08ddb29f4c0c71ad3a1e7ca3c23e40f7075a99574fe5dbf228fda05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.42.0-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.42.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 dbf473496808d4c2c816902c1dee2aabc029648e56ce8514b643f5a1a6fc8e22
MD5 51c14df99edb473da8efed17d1d5cc2e
BLAKE2b-256 fe8b409f894a999b629f29979731d3746bb84089bdb32a6a6aedadf1e0216a97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.42.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b2a46a24641e5d468046cde567c98fdb8d85e32df901630b14dfb288cbd1ed4f
MD5 4df9bf9e699beae9d484fc2e685c55bd
BLAKE2b-256 17709a4b189781fe305c4960742bfe63f4c562480c5731facbb0a058468a2ddf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.42.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 313f2551a772f57c9ccca017c4dd4661f2277166f9e1d84bbf5a2e316f0f892c
MD5 f4811700c9d740f5300773538490e67d
BLAKE2b-256 f20f9b5f73d29c35d2c5b839e0097e52400e4678d8d968bf7aa683c12e2939bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.42.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 4e1fc1c049a0af64626ddd50814d14a01f316bcbb4d1aa83c3416fe420add558
MD5 73a41c53c8bd3e63928314c040fe936c
BLAKE2b-256 a35396319204298038cb3760130b47ee3dcb9e1bc4d5349026be2161ce38d60a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.42.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 283887f0bdd0039c3d720e32fbc73a045c24fa800599a6ad60fb199c29580534
MD5 052fb7357323a8f71d97099e4436697e
BLAKE2b-256 b297229adf23ffb44e4824965b4ea2781dbc818b170864644f2bb015782a0fe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.42.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e2b293f077efeaa45253fde31cea4bc6b0ae8be6b5e65e8ce8b4aa3b9f0d55b6
MD5 574706ce92f33580badd308725503cbd
BLAKE2b-256 6b9a9df632b89cea288a5a8b635fdb0fc11c6d1283314caff263ce0c2b9c567b

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