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.24
WebKit 16.4
Firefox 113.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.35.0-py3-none-win_amd64.whl (29.1 MB view details)

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

playwright-1.35.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.35.0-py3-none-manylinux1_x86_64.whl (35.3 MB view details)

Uploaded Python 3

playwright-1.35.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.35.0-py3-none-macosx_11_0_arm64.whl (31.2 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.35.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.35.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for playwright-1.35.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2df7cfaaca881fd065f68e1c72a8216679a5b096f2add60c8c7c9dc909fdf7ef
MD5 eb2eed90a90ab804284ab124224c9234
BLAKE2b-256 7e7b68f5633426889f5aa56d0f1cd1fda745d185ec59aace56e6e23e0be9c751

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.35.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.16

File hashes

Hashes for playwright-1.35.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 188481e780166eae9a2215bb3a58043ae167f7cc963282c7b7d14ba53858451c
MD5 23af309b94205486a51c40af3561f70f
BLAKE2b-256 493591583ab8abd3831772b87be3f02795b5a04b22872194980bd41971094d1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.35.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bc1d0686bdb6d7c2ce75087a1d6c7820e3de65be893f8a5ec64455613e884b39
MD5 23322e43aac548587befd08c1479aadb
BLAKE2b-256 ddc4ec0add06e8ce37ed7bcbdcb03026a8cd22fa0267417a717508f298919dd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.35.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a29cd048b3eddaf116b154328bcb8e3f3a637753cbb926ae3ef5a5e694ed2d64
MD5 4d61a2e68b6b9fd8e2ef8cf77122cb70
BLAKE2b-256 2929d2be79a08a66db982d3f8857e9fa6c0387eef58df7c2833c934d8d4eb857

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.35.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 4f486ea09940a35c08ec26f272bdcb6c1e043d400f3b9b924d541c5f4a7ed8f3
MD5 20731f0f84b247ed7fcac003ac09c71b
BLAKE2b-256 b27add230701cbfde0a58d26c1828ea802e3bce673eefc61ce8f2915f344ce37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.35.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 444446b55bfb33ac62398f9f71a8fdb6cee1ceda3316d95db3c6419c51bca9be
MD5 5cc60f3c45aba4b2dfc9244d0d62f542
BLAKE2b-256 f1c96d2be4c146617e6a792d603db7e40bfb71bb5d2830dcfdd6a214c8eef40a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.35.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 9eb7fdb7bb3f4e528e63641b83827531739c58a40c71d4ea0030321d3f04a742
MD5 5d29362d1c260052ec772ce8b762f271
BLAKE2b-256 6c7158dad1a5f102f2764afc426afb3f3b8c40c0d148717fc30cd15d940e79d1

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