Skip to main content

A high-level API to automate web browsers

Project description

🎭 Playwright for Python PyPI version Anaconda version Join Slack

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 115.0.5790.75
WebKit 17.0
Firefox 115.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.36.0-py3-none-win_amd64.whl (29.1 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.36.0-py3-none-win32.whl (29.1 MB view details)

Uploaded Python 3 Windows x86

playwright-1.36.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (35.2 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.36.0-py3-none-manylinux1_x86_64.whl (35.3 MB view details)

Uploaded Python 3

playwright-1.36.0-py3-none-macosx_11_0_universal2.whl (32.9 MB view details)

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

playwright-1.36.0-py3-none-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.36.0-py3-none-macosx_10_13_x86_64.whl (32.9 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.36.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 89ca2261bb00b67d3dff97691cf18f4347ee0529a11e431e47df67b703d4d8fa
MD5 2ce67f11a57b2839f2e9b166986a3815
BLAKE2b-256 e7ed4bdd9c1c22fa05ed5cbb5d1056192f0e121a1c46bdc2e033c9b0f64f3048

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.36.0-py3-none-win32.whl
  • Upload date:
  • Size: 29.1 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for playwright-1.36.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 84213339f179fd2a70f77ea7faea0616d74871349d556c53a1ecb7dd5097973c
MD5 70f46f97c590330555b286a8676a153f
BLAKE2b-256 733a22213d3ee5f499b3229767a2fba116e48954f481b15e690f6ab8a03cfce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.36.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ffbb927679b62fad5071439d5fe0840af46ad1844bc44bf80e1a0ad706140c98
MD5 758d57770a1a7ba029f390a5b17a5da8
BLAKE2b-256 246c4808690ad574086a419520fbdc06bef171246bd71043ebc38cd313feafd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.36.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 72e80076e595f5fcd8ebd89bf6635ad78e4bafa633119faed8b2568d17dbd398
MD5 ae8c67f61e5ac9114b550a4e90d7f181
BLAKE2b-256 bb1a82cb85c0ac5d40f3dfbb6e3d9247d8fd302f5de639b0321bde9336702043

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.36.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 4e396853034742b76654cdab27422155d238f46e4dc6369ea75854fafb935586
MD5 9192b5196dbed4f8e0694e84f61d09aa
BLAKE2b-256 5a919ac3bd3cb072ba1a135c1825bdcc5f8efc1e88ca98c271b71a93978acc36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.36.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 428a719a6c7e40781c19860ed813840ac2d63678f7587abe12e800ea030d4b7e
MD5 f2b183aebecde9c499e19fb3c5a33835
BLAKE2b-256 efed1387012c1e98e604212cff24a789452c0408fb12c6a4a323f4bc571e140d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.36.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b7c6ddfca2b141b0385387cc56c125b14ea867902c39e3fc650ddd6c429b17da
MD5 036c57fd3f2a6b3289d7b5a9477b1c86
BLAKE2b-256 20af6cb3d08c8812ec2e52a6cff0706c0fc6744146a9836034edcad8e8001535

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