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 141.0.7390.37 โœ… โœ… โœ…
WebKit 26.0 โœ… โœ… โœ…
Firefox 142.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.56.0-py3-none-win_arm64.whl (31.2 MB view details)

Uploaded Python 3Windows ARM64

playwright-1.56.0-py3-none-win_amd64.whl (35.6 MB view details)

Uploaded Python 3Windows x86-64

playwright-1.56.0-py3-none-win32.whl (35.6 MB view details)

Uploaded Python 3Windows x86

playwright-1.56.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (46.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

playwright-1.56.0-py3-none-manylinux1_x86_64.whl (46.3 MB view details)

Uploaded Python 3

playwright-1.56.0-py3-none-macosx_11_0_universal2.whl (40.6 MB view details)

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

playwright-1.56.0-py3-none-macosx_11_0_arm64.whl (39.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

playwright-1.56.0-py3-none-macosx_10_13_x86_64.whl (40.6 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.56.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 2745490ae8dd58d27e5ea4d9aa28402e8e2991eb84fb4b2fd5fbde2106716f6f
MD5 936399cfcb1889a35fc6451662280f0d
BLAKE2b-256 f2c73ee8b556107995846576b4fe42a08ed49b8677619421f2afacf6ee421138

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.56.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 35.6 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.56.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 3c7fc49bb9e673489bf2622855f9486d41c5101bbed964638552b864c4591f94
MD5 8cc253467af9f5990ed3c49a9616d6ef
BLAKE2b-256 6427f13b538fbc6b7a00152f4379054a49f6abc0bf55ac86f677ae54bc49fb82

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.56.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 d87b79bcb082092d916a332c27ec9732e0418c319755d235d93cc6be13bdd721
MD5 05795e771d26f50ff28782829e08e102
BLAKE2b-256 61bd8c02c3388ae14edc374ac9f22cbe4e14826c6a51b2d8eaf86e89fabee264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.56.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 64cda7cf4e51c0d35dab55190841bfcdfb5871685ec22cb722cd0ad2df183e34
MD5 4de31fdca9b8b78a65541e5b8c5b7bcb
BLAKE2b-256 4f84fb292cc5d45f3252e255ea39066cd1d2385c61c6c1596548dfbf59c88605

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.56.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 404be089b49d94bc4c1fe0dfb07664bda5ffe87789034a03bffb884489bdfb5c
MD5 ed310e345ed0738e1239e523a4a5693d
BLAKE2b-256 e4766d409e37e82cdd5dda3df1ab958130ae32b46e42458bd4fc93d7eb8749cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.56.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 0ef7e6fd653267798a8a968ff7aa2dcac14398b7dd7440ef57524e01e0fbbd65
MD5 6e8ac81f46744974ce7b2e45075900c9
BLAKE2b-256 b9546ad97b08b2ca1dfcb4fbde4536c4f45c0d9d8b1857a2d20e7bbfdf43bf15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.56.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b228b3395212b9472a4ee5f1afe40d376eef9568eb039fcb3e563de8f4f4657b
MD5 f1483775e987f9f3260790daebba8f21
BLAKE2b-256 ef95347eef596d8778fb53590dc326c344d427fa19ba3d42b646fce2a4572eb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.56.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b33eb89c516cbc6723f2e3523bada4a4eb0984a9c411325c02d7016a5d625e9c
MD5 8ec9e6bef45e267b90655b72fcea540a
BLAKE2b-256 6b31a5362cee43f844509f1f10d8a27c9cc0e2f7bdce5353d304d93b2151c1b1

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