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 145.0.7632.6
WebKit 26.0
Firefox 146.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://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


Release history Release notifications | RSS feed

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

If you're not sure about the file name format, learn more about wheel file names.

playwright-1.58.0-py3-none-win_arm64.whl (33.1 MB view details)

Uploaded Python 3Windows ARM64

playwright-1.58.0-py3-none-win_amd64.whl (36.8 MB view details)

Uploaded Python 3Windows x86-64

playwright-1.58.0-py3-none-win32.whl (36.8 MB view details)

Uploaded Python 3Windows x86

playwright-1.58.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (46.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

playwright-1.58.0-py3-none-manylinux1_x86_64.whl (46.2 MB view details)

Uploaded Python 3

playwright-1.58.0-py3-none-macosx_11_0_universal2.whl (42.3 MB view details)

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

playwright-1.58.0-py3-none-macosx_11_0_arm64.whl (41.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

playwright-1.58.0-py3-none-macosx_10_13_x86_64.whl (42.3 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

Details for the file playwright-1.58.0-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for playwright-1.58.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 32ffe5c303901a13a0ecab91d1c3f74baf73b84f4bedbb6b935f5bc11cc98e1b
MD5 ad164cd492b60c78f464404f1f0268f2
BLAKE2b-256 c8c4cc0229fea55c87d6c9c67fe44a21e2cd28d1d558a5478ed4d617e9fb0c93

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.58.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a2bf639d0ce33b3ba38de777e08697b0d8f3dc07ab6802e4ac53fb65e3907af8
MD5 fe1e04f475d8ebf4ad321fc926ae47b7
BLAKE2b-256 41f85ec599c5e59d2f2f336a05b4f318e733077cd5044f24adb6f86900c3e6a7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.58.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 1e03be090e75a0fabbdaeab65ce17c308c425d879fa48bb1d7986f96bfad0b99
MD5 f967a94743c2fba900c9c6ffc4b5fa33
BLAKE2b-256 0e4b236e60ab9f6d62ed0fd32150d61f1f494cefbf02304c0061e78ed80c1c32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.58.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8f9999948f1ab541d98812de25e3a8c410776aa516d948807140aff797b4bffa
MD5 801e1765355dc7ee7236eb3ae6c109bc
BLAKE2b-256 d9a60e66ad04b6d3440dae73efb39540c5685c5fc95b17c8b29340b62abbd952

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.58.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c95568ba1eda83812598c1dc9be60b4406dffd60b149bc1536180ad108723d6b
MD5 6e034e14e6695e56e0c1dad739837811
BLAKE2b-256 f1af009958cbf23fac551a940d34e3206e6c7eed2b8c940d0c3afd1feb0b0589

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.58.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 185e0132578733d02802dfddfbbc35f42be23a45ff49ccae5081f25952238117
MD5 ce24c5988412f814312b9a2d1640db76
BLAKE2b-256 e1ee3ce6209c9c74a650aac9028c621f357a34ea5cd4d950700f8e2c4b7fe2c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.58.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70c763694739d28df71ed578b9c8202bb83e8fe8fb9268c04dd13afe36301f71
MD5 ac7ed8a9f257cae7969bb7db2ac2f0cc
BLAKE2b-256 e04059d34a756e02f8c670f0fee987d46f7ee53d05447d43cd114ca015cb168c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.58.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 96e3204aac292ee639edbfdef6298b4be2ea0a55a16b7068df91adac077cc606
MD5 c65e131f7a841f10964bd39eea7d8321
BLAKE2b-256 f8c99c6061d5703267f1baae6a4647bfd1862e386fbfdb97d889f6f6ae9e3f64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page