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 130.0.6723.31
WebKit 18.0
Firefox 131.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.48.0-py3-none-win_amd64.whl (30.0 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.48.0-py3-none-win32.whl (30.0 MB view details)

Uploaded Python 3 Windows x86

playwright-1.48.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.9 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.48.0-py3-none-manylinux1_x86_64.whl (38.2 MB view details)

Uploaded Python 3

playwright-1.48.0-py3-none-macosx_11_0_universal2.whl (35.0 MB view details)

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

playwright-1.48.0-py3-none-macosx_11_0_arm64.whl (33.3 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.48.0-py3-none-macosx_10_13_x86_64.whl (35.0 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.48.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e0e87b0c4dc8fce83c725dd851aec37bc4e882bb225ec8a96bd83cf32d4f1623
MD5 5fa1d540e857b9cfde8f6dc3e82ef878
BLAKE2b-256 4588b6459c93a8bc0b96e7a33b6744bbef2740a0b78b0534542a037d220427f0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.48.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 85598c360c590076d4f435525be991246d74a905b654ac19d26eab7ed9b98b2d
MD5 4c7735941a69e1f673d6ee3192bb643e
BLAKE2b-256 3ac5ff02a780c76e9cf20296e2d1743bb42b1e81d62535802eb6d67b1b6b7b47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.48.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8ff8303409ebed76bed4c3d655340320b768817d900ba208b394fdd7d7939a5c
MD5 4dd1e19feb30d326d1c5c8d55b70756c
BLAKE2b-256 31dc121be574222fc74d12ac42921728fb6ba8ac17264a1fdab1993263389082

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.48.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8dabb80e62f667fe2640a8b694e26a7b884c0b4803f7514a3954fc849126227b
MD5 36f4a653b68ab7898111b69a4fc4e07b
BLAKE2b-256 f90c8cde1a86a9a7449a0ba95197f42156198083be1749b717831fba16ab2b5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.48.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 115b988d1da322358b77bc3bf2d3cc90f8c881e691461538e7df91614c4833c9
MD5 376e74b15942e485fb45d97ed9fa7cb1
BLAKE2b-256 b0f2f184f613e6f496ed78e7808ac729900257567d2c1a7930e61026f0e48a5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.48.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7da2eb51a19c7f3b523e9faa9d98e7af92e52eb983a099979ea79c9668e3cbf7
MD5 604356b05bee3d18d9d488bef7689a72
BLAKE2b-256 6441d77c47743800fbeb86657611e651e56a17cbb4ebfefa1da0318dc39092df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.48.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 082bce2739f1078acc7d0734da8cc0e23eb91b7fae553f3316d733276f09a6b1
MD5 a659217e9ece1641356d67f4a355c7d7
BLAKE2b-256 b8410166d58c3eeae72377cbcd4cbed84b36cddc551a2b094bf7984198aafb79

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