Skip to main content

A high-level API to automate web browsers

Project description

🎭 Playwright for Python PyPI 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 149.0.7827.55
WebKit 26.5
Firefox 151.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


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

Uploaded Python 3Windows ARM64

playwright-1.61.0-py3-none-win_amd64.whl (37.8 MB view details)

Uploaded Python 3Windows x86-64

playwright-1.61.0-py3-none-win32.whl (37.8 MB view details)

Uploaded Python 3Windows x86

playwright-1.61.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (47.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

playwright-1.61.0-py3-none-manylinux1_x86_64.whl (47.4 MB view details)

Uploaded Python 3

playwright-1.61.0-py3-none-macosx_11_0_universal2.whl (43.4 MB view details)

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

playwright-1.61.0-py3-none-macosx_11_0_arm64.whl (42.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

playwright-1.61.0-py3-none-macosx_10_13_x86_64.whl (43.4 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.61.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 e9fcbffcf557a8620fdedd92491eb59a32d18e23d6f3b4f6214b952be324fe51
MD5 1e4c95c4203c2bf6126906d49b275d31
BLAKE2b-256 270d1b0f3c4ee4eb0514bc805b5c2f9a223e5b6de4f11a926f5235d51d0fc81b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.61.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 37.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.61.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 35c6cc4589a5d00964a59d7b3e59641e0aac0c02f15479a7af77d20f6bc79597
MD5 107b09c66cde448e5226744ae5ce1dfc
BLAKE2b-256 6cfd2b78036e5fbe9d5f5645bbe08a1eac7160c51243c0093963edbcf67c35d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.61.0-py3-none-win32.whl
  • Upload date:
  • Size: 37.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.61.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 372d55a6f1248fa1dd47599686980cb8fb5bbe6fcda59eab793eb657c11d8a9b
MD5 d046d59e592a9a281b4b3a1011a14e09
BLAKE2b-256 c2a65be4e52b40a9c0c8a073e7c5b0785c05cf5a9ea8f8a7b5b260e32d970342

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.61.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 93454322ade8c11d5d6c211bfd91bdfb9ffb4810e3e026371bcbc4bec1b7ee4c
MD5 450aabfab33d923c75e0fc7f88f2d632
BLAKE2b-256 b7ebe3f922348ec17c315f98c463f72faa1181a1c3de0bfe31a8d2edf6561723

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.61.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 54f3b39f6eab832e33458c1dd7da0b5682aedab3b09ae731b5c59fa12fd2024e
MD5 bcd491e77e1cfc69749dd39c77a4a2d6
BLAKE2b-256 abf8a35bf179e4ba2522c1893635094a64e407572547bd61528820fc0abc87fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.61.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 9f7de4536088d12037c13a52b7ea34b59270b78926bb56935070597ffac6b1af
MD5 49b28e511a1afd1ba9a23ebd70e66475
BLAKE2b-256 f444323164cf5cd1647bdefce76ffce27651aadb959d089b48f53ea40918276e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.61.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 009588c2a7e499bc5a8b425b61fa65490968bbda9cd69e0cf2cff10f8304659a
MD5 241f0390be3dd8991ec2f0c672bac6cc
BLAKE2b-256 423571395dd3ecc798965be4a3ef8c443217d4abca168e7cb34536304f9489e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.61.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ff138c3a604f69911e9d42fd036e55c2a171e5616edf04c1e7f60a2a285540b0
MD5 b923893df0bec0c2586c6a4668ad66ae
BLAKE2b-256 44ee31e4e0db36588b817a10b299a0285082545fde7d36543c2abe498bb3d61a

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