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 133.0.6943.16
WebKit 18.2
Firefox 134.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.50.0-py3-none-win_amd64.whl (34.8 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.50.0-py3-none-win32.whl (34.8 MB view details)

Uploaded Python 3 Windows x86

playwright-1.50.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (44.5 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.50.0-py3-none-macosx_11_0_universal2.whl (40.3 MB view details)

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

playwright-1.50.0-py3-none-macosx_11_0_arm64.whl (39.5 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.50.0-py3-none-macosx_10_13_x86_64.whl (40.3 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.50.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1859423da82de631704d5e3d88602d755462b0906824c1debe140979397d2e8d
MD5 1b1caa12a78ea2c8da5ce9d530f89d6d
BLAKE2b-256 bc2be944e10c9b18e77e43d3bb4d6faa323f6cc27597db37b75bc3fd796adfd5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.50.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 3b906f4d351260016a8c5cc1e003bb341651ae682f62213b50168ed581c7558a
MD5 417f3c9ec2153e9cd3b16cbed67b740e
BLAKE2b-256 2b4a047cbb2ffe1249bd7a56441fc3366fb4a8a1f44bc36a9061d10edfda2c86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.50.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ffcff35f72db2689a79007aee78f1b0621a22e6e3d6c1f58aaa9ac805bf4497c
MD5 ce5cb60b10e88046cb0b05d969db21a9
BLAKE2b-256 bd2ca54b5a64cc7d1a62f2d944c5977fb3c88e74d76f5cdc7966e717426bce66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.50.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8fc628c492d12b13d1f347137b2ac6c04f98197ff0985ef0403a9a9ee0d39131
MD5 ba81a7fc296f8b9fd53650d020b5ec4a
BLAKE2b-256 b963c9a73736e434df894e484278dddc0bf154312ff8d0f16d516edb790a7d42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.50.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 9922ef9bcd316995f01e220acffd2d37a463b4ad10fd73e388add03841dfa230
MD5 060224ab51e528d5b0461913ecbcc81e
BLAKE2b-256 f3f6002b3d98df9c84296fea84f070dc0d87c2270b37f423cf076a913370d162

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.50.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40f274384591dfd27f2b014596250b2250c843ed1f7f4ef5d2960ecb91b4961e
MD5 47da5b3bdc7ab7a3aca6aaa73afca47e
BLAKE2b-256 7885b3deb3d2add00d2a6ee74bf6f57ccefb30efc400fd1b7b330ba9a3626330

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.50.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f36d754a6c5bd9bf7f14e8f57a2aea6fd08f39ca4c8476481b9c83e299531148
MD5 004cdaa47792a0be1ff416e6e00709c4
BLAKE2b-256 0d5e068dea3c96e9c09929b45c92cf7e573403b52a89aa463f89b9da9b87b7a4

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page