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 98.0.4695.0
WebKit 15.4
Firefox 94.0.1

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://whatsmyuseragent.org/')
        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://whatsmyuseragent.org/')
            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.17.0-py3-none-win_amd64.whl (26.4 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.17.0-py3-none-win32.whl (26.4 MB view details)

Uploaded Python 3 Windows x86

playwright-1.17.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (33.7 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.17.0-py3-none-manylinux1_x86_64.whl (31.5 MB view details)

Uploaded Python 3

playwright-1.17.0-py3-none-macosx_11_0_universal2.whl (29.6 MB view details)

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

playwright-1.17.0-py3-none-macosx_11_0_arm64.whl (30.0 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.17.0-py3-none-macosx_10_13_x86_64.whl (29.6 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: playwright-1.17.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 26.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for playwright-1.17.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 413c5e194694a034389e84997e2cdd9e1e9d646bd81cadf21b9e0336df34c1f9
MD5 86084c54045868c0a76b812eae325ea2
BLAKE2b-256 e828053aa186b424fce7991daccb39b92cecbca6cc6d2cb15dcd5778b1a01dfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.0-py3-none-win32.whl
  • Upload date:
  • Size: 26.4 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for playwright-1.17.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 8f6b8520a384f8ef81fb12df992b22ce1c87a3eb34bba55d16d155cd51446530
MD5 14a4a13a8312a7b41d06af148149f065
BLAKE2b-256 6c2f7744c012c5e6458491c45a1185c92d078e16f6b123cced8f2511aae3476c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.17.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 92494c55a8a85508f929eb037e4fb3024799f108cab510fa9a1165bb6a5ef1e6
MD5 72c1ee09bdf442bcab88ac1160e6eb01
BLAKE2b-256 15f8ad40b388d9f99cf875b733ffa11197c5ae4fd3c34ff09e3f5dd6f9f98da4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.0-py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 31.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for playwright-1.17.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ec3313601d86647c2973593983d377b6e140d330085d94889218705afba3e914
MD5 ad6a71704f75f1822f418414e56b383a
BLAKE2b-256 0ec2b69666ede0ba4bde9dc3f8b2c9d51110d8c6e3b349485a7067d29e94d518

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.0-py3-none-macosx_11_0_universal2.whl
  • Upload date:
  • Size: 29.6 MB
  • Tags: Python 3, macOS 11.0+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for playwright-1.17.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 bcbd2e6b6f872c7a51aedb7b6a17546b75aa297e0bb3e4708f7ed0e2ed01ba06
MD5 6d8a5d7afe2e38618bd4da4c650232c2
BLAKE2b-256 f99f7d16e59122ba623b905ef62c9343e8e56ba381f0bf1006cfe38ac8f5a162

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 30.0 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for playwright-1.17.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f11fbc373f50e0f6c3dcc2a6b4ac3958b0f8ab1c8727a8d4dcaa11d81de20b68
MD5 df88cda2287a9ec6fc6b06ecd8c79226
BLAKE2b-256 baf928240862943eb477afc4a01c06f28aa474954fcc9f9072cde7c3ebf26750

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.0-py3-none-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 29.6 MB
  • Tags: Python 3, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for playwright-1.17.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c0fdd43a0a41c8e12c5d74119bdd5db8e154b915831b8631f8bd3fee54d8829f
MD5 babff6a29904b696b45933de71aaa95f
BLAKE2b-256 29c6fb449314b7cf3cef19dcd06f6aeb772aaa6633606d4d966260dda7c2ca8b

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