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 124.0.6367.29
WebKit 17.4
Firefox 124.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.43.0-py3-none-win_amd64.whl (29.4 MB view details)

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

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

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.43.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.43.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for playwright-1.43.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9b7bd707eeeaebee47f656b2de90aa9bd85e9ca2c6af7a08efd73896299e4d50
MD5 3fbdba181a3fe7b440342a71a3eee03f
BLAKE2b-256 33a10bfb6705415a7a268b693b10fbbf6638bcbf86a8ea7db735f67ef6252cf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.43.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.43.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 bd8b818904b17e2914be23e7bc2a340b203f57fe81678520b10f908485b056ea
MD5 cc223e5bbb92c75a72de84aacae223ee
BLAKE2b-256 4aa3c3d10726e3f9ffbc50a3dbf6566aefd806f614af4807674f3c07ea357a52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.43.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 87191272c40b4c282cf2c9449ca3acaf705f38ac6e2372270f1617ce16b661b8
MD5 c1f1eae5b306e118d1c15476fead1b81
BLAKE2b-256 e45a511e97a2a08a49628ab69f5ad2892e893a177ed69cdb0663c30586bfee63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.43.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 50d9a5c07c76456945a2296d63f78fdf6eb11aed3e8d39bb5ccbda760a8d6d41
MD5 2590720768c38cae5721df39787139e0
BLAKE2b-256 8b5cfe3e42ea46038ec69a0c0fd4b8f8d9a633577f5b3c0368b67d73ee33e910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.43.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 e05a8d8fb2040c630429cca07e843c8fa33059717837c8f50c01b7d1fc651ce1
MD5 b9f8e5c35e1ddd45c48c760e98a60d36
BLAKE2b-256 e2c8ad2c5ca177c0665648dff1f03d45a965fdcae7ff43849947c98e90f0082e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.43.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9ec21b141727392f630761c7f4dec46d80c98243614257cc501b64ff636d337
MD5 fef7e33ad47f31900db6d388b7b82f47
BLAKE2b-256 4dfce7c1a8696911e5faaa5c480f649deccf633aa2a235c91664748471490576

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.43.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b03b12bd4da9c2cfb78dff820deac8b52892fe3c2f89a4d95d6f08c59e41deb9
MD5 afb80d193bbb151a65a8e3d67ec35b92
BLAKE2b-256 6210f0638cbcd25d2e5d06e23aa55f4a575b062e6f35670a46adc53dd5ebcc63

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