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

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

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

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.41.2-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.2-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for playwright-1.41.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 71ead0f33e00f5a8533c037c647938b99f219436a1b27d4ba4de4e6bf0567278
MD5 7a358ec5b9e71f13abfe5dcd004b4b50
BLAKE2b-256 6b1b7d6de86d79dc366f146008f6660ee50ee926450a18d42b309710a6abf398

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.41.2-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.2-py3-none-win32.whl
Algorithm Hash digest
SHA256 edb210a015e70bb0d328bf1c9b65fa3a08361f33e4d7c4ddd1ad2adb6d9b4479
MD5 57e43bd5aa0311b75b7845b4fbf3bb01
BLAKE2b-256 10a3ee80ce24bdeb3433a9a899d825ef1480dea19a0f0464c0f94339472c4e32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 eaa17ab44622c447de26ed8f7d99912719568d8dbc3a9db0e07f0ae1487709d9
MD5 07ea1de0534e056957f72882dea43bdf
BLAKE2b-256 b45dad30302ef903a4c9ce58c1853ca659fb06ae9b2f13a0470fecb931276e4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.2-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4bf214d812092cf5b9b9648ba84611aa35e28685519911342a7da3a3031f9ed6
MD5 3f9909e0ed59a69fa8984e4e0031e115
BLAKE2b-256 98aa485efb664d9808715d1a130b6bc33aac12d2156a40310bdc385811d95048

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.2-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 0608717cbf291a625ba6f751061af0fc0cc9bdace217e69d87b1eb1383b03406
MD5 75f37c6b3b2c181afd91a340e1243338
BLAKE2b-256 f6aec62ff438fed4215eeb188284b44629fc77b4d50dfd4ecf339d63d0ba1cc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 431e3a05f8c99147995e2b3e8475d07818745294fd99f1510b61756e73bdcf68
MD5 b764587248ad9d574ea8f177db8c1905
BLAKE2b-256 e440f69d23fbd8d4c59b9b05578ad2b33745ee34ad33b64133b4a2659cfae071

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.41.2-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cf68335a5dfa4038fa797a4ba0105faee0094ebbb372547d7a27feec5b23c672
MD5 7d6d1d8aacdecd5e11dff4c4becce086
BLAKE2b-256 83f981843bb9483332c4dee3b3aa0aef9b4269d1abd49cfffd1fde1700748b6e

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