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

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

playwright-1.41.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.41.0-py3-none-manylinux1_x86_64.whl (37.4 MB view details)

Uploaded Python 3

playwright-1.41.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.41.0-py3-none-macosx_11_0_arm64.whl (32.6 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.41.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.41.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for playwright-1.41.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 925045824dc3d505c8f197c94a083e4619d7c268d7c3465d73a5a09040dc8b85
MD5 91fd4b9bc5f7c90f102e7e643618cce8
BLAKE2b-256 3d4bc26bc19df06a167ffffcc1e4f132a6e95b24b21836291f660bc12562d605

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.41.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.41.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 46d4aaed0071db67361900a2027bb14dba74f9eb102cf2baf1876c0ff0c15da6
MD5 67ddf2969c47387d0a2b18adaa8083e7
BLAKE2b-256 66810daeb9d1c389c6aaec8a6912d9bf8062e59786a26504137f7bbeb959d635

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9ccf3214b0cdd932bcdc04794ecafe50bd386e8523ce4681969aac86d3326f87
MD5 b2190da05530da5ef3e084f87544ebe2
BLAKE2b-256 3d7b7132cb5a107b9af274a9e5fdc09d0cc68e62114e8d3862dff7118066c14e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b56c1d564df9a2b2ab393f8161b71bcc16df38ade60115e1162ad6d9f116c89b
MD5 b93599f2cc3c3600110fec0a18e7e330
BLAKE2b-256 a114026f013297d5fc57362f9adc145d9d7024adc240290445498e97f89b690a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 f3f0841360652ddd77f6e059074d5079dd37b487168a2972efbf13cd23fbacb0
MD5 e42bdd71c0d3f0af9201dcb6c7988ea4
BLAKE2b-256 d98f486ed8e9dcae2041c3e068c002d89ce82ae751d19e517dfce15b03411d5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d34f472d174e55d8f12265e10d11ba21be99bf0661ccbf1f9b048312696d5e8
MD5 4b7d7c28237ce53cb0fafb5e25d90dac
BLAKE2b-256 8d63239ffc94f3856932ea8cf4bf4c2cebeda8442ccdcf2e685882ab666b244b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ad3ff4805fd21b91c9acbc5b27e62bf0ac6a235e93f91d9dd6d311d5e988b069
MD5 d2b72491718c8b29c14c6af4996ee0c2
BLAKE2b-256 11f0079b624c1beba8b78d0b154c66c49eaaad4849c472db1a51f5334e968b7f

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