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 148.0.7778.96
WebKit 26.4
Firefox 150.0.2

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.60.0-py3-none-win_arm64.whl (34.0 MB view details)

Uploaded Python 3Windows ARM64

playwright-1.60.0-py3-none-win_amd64.whl (37.9 MB view details)

Uploaded Python 3Windows x86-64

playwright-1.60.0-py3-none-win32.whl (37.9 MB view details)

Uploaded Python 3Windows x86

playwright-1.60.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (47.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

playwright-1.60.0-py3-none-manylinux1_x86_64.whl (47.5 MB view details)

Uploaded Python 3

playwright-1.60.0-py3-none-macosx_11_0_universal2.whl (43.5 MB view details)

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

playwright-1.60.0-py3-none-macosx_11_0_arm64.whl (42.3 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

playwright-1.60.0-py3-none-macosx_10_13_x86_64.whl (43.5 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.60.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 6e4f6700a4c2250efff8e690a81d66e3855754fb587b6b87cf5c784014f91537
MD5 8826ae2a555bffaf72fa5b70701ab74c
BLAKE2b-256 80c8210f282d278e4709cdd71b12a31af45a30a22ab3207b387e29b37e478713

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.60.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 37.9 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.60.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9566821ce6030a1f9e7146a24e19355ab0d98805fd0f9be50bb3d8fef1750c02
MD5 8fa5d4e18ba9b9ab1543e6839703a767
BLAKE2b-256 55f00541524133104f9cc20bf900870ff4a736b76a23483f3a55295ddfa58409

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.60.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 ec94e416ea320711e0ad4bf185dcbf41833672961e90773e1885255d7db7b7e7
MD5 be9e1ac159acea8d7ca58ca86ad57f57
BLAKE2b-256 bb4eb008b6440a7a1624378041da94829956d4b8f7ab9ef5aad22d0dc3f2e26d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.60.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 43e66564125ee31b07a58cefb21e256d62d67d8d1713e6858df7a3019d8ed353
MD5 32175c17d63b18005ec9826ba486e50f
BLAKE2b-256 84c21528d267d4442bd2c6b8eaeab819dd52c2030bf80e89293f0ba1f687473b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.60.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1c2bfae7884fb3fb05b853290eab8f343d524e5016f2f1def702acbbdf14c93e
MD5 875e39bfb24dd195dffd26106593b1f0
BLAKE2b-256 227b1d679f4fced4ea94efadd17103856d8c565384f68382a1681264e46f5925

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.60.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 2581d0e6a3392c71f91b27460c7fd093356818dc430f48153896c8aeeaef7705
MD5 1ffc2d2d7941a83ac896dfd288d2ccec
BLAKE2b-256 d7bc23de499ded6411c188a20c5a0dea6f0cd4ed5d2b3cc6042a5dbd3ed609aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.60.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39b5420ba6145045b69ced4c5c47d4d9fe5bddfc8ff816c518913afcb25ec7a5
MD5 a1146c2bcaa3e18f899b98663dc20e5d
BLAKE2b-256 597be1d32ae8a3ed937ec2be3721c5f728b13d731a0b7c6442e0b3bec5094ac0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.60.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 6a8cd0fec171fb3089e95e898c8bc8a6f35dea0b78b399e12fcc19427e91b1d7
MD5 1d47e17b4931f2fd1e1f133a82dae084
BLAKE2b-256 21f0832bd9677194908da118064eef20082f2791e3d18215cc6d9391ee2c5a67

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