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 127.0.6533.17
WebKit 17.4
Firefox 127.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.45.1-py3-none-win_amd64.whl (29.7 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.45.1-py3-none-win32.whl (29.7 MB view details)

Uploaded Python 3 Windows x86

playwright-1.45.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.6 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.45.1-py3-none-manylinux1_x86_64.whl (37.9 MB view details)

Uploaded Python 3

playwright-1.45.1-py3-none-macosx_11_0_universal2.whl (34.7 MB view details)

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

playwright-1.45.1-py3-none-macosx_11_0_arm64.whl (33.1 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.45.1-py3-none-macosx_10_13_x86_64.whl (34.7 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.45.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0d236cf427784e77de352ba1b7d700693c5fe455b8e5f627f6d84ad5b84b5bf5
MD5 3433be1db4fcd9caa4263b3149fbc1b3
BLAKE2b-256 ab78779da49df6e036aaafbe47d1f55c95571855d6c5b4915bed41ab730412b5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.45.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 2b8f517886ef1e2151982f6e7be84be3ef7d8135bdcf8ee705b4e4e99566e866
MD5 ffbad0be5545671255e8127613221673
BLAKE2b-256 69496d3be3cc6702bbd7fa5b162e5cb8a79139956c8155eeb0ee39768dae636c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 87dc3b3d17e12c68830c29b7fdf5e93315221bbb4c6090e83e967e154e2c1828
MD5 c86d4b337373a6f614373772cc9be443
BLAKE2b-256 eb43d2fa94806abdaaa9a6ce47d6b5888ddc1b0d1a5794b6ec6eea9fe73a072d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f06f6659abe0abf263e5f6661d379fbf85c112745dd31d82332ceae914f58df7
MD5 8d5a1e4eb9ef211240fbf4e550d84e84
BLAKE2b-256 8c9c54b161852448d4c3c15b78ecd55b2ac73f7aeda1caf0f4069f9fc0459088

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.1-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 5f047cdc6accf4c7084dfc7587a2a5ef790cddc44cbb111e471293c5a91119db
MD5 5055dad026bc1db2b8e253f88754b246
BLAKE2b-256 abaa7b7e8d89cc77150c05f7f82cc04cc37faf715be8324f69c4781f3a35c3cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20adc2abf164c5e8969f9066011b152e12c210549edec78cd05bd0e9cf4135b7
MD5 52861ff584b7c98fb56d09e92f5c6505
BLAKE2b-256 7594d36563b81df071205865b7ccb374a0f523ad7f351a5eb27bfb2625a93a97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.1-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 360607e37c00cdf97c74317f010e106ac4671aeaec6a192431dd71a30941da9d
MD5 384a007f520b861919a93a1efab51f08
BLAKE2b-256 a7fe23b5ed477aa950723718c2e6c6d6d1f3f27078011a57d927d15f6cf9db40

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