Skip to main content

A high-level API to automate web browsers

Project description

🎭 Playwright for Python PyPI version Anaconda version Join Slack

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 116.0.5845.82
WebKit 17.0
Firefox 115.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.37.0-py3-none-win_amd64.whl (29.4 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.37.0-py3-none-win32.whl (29.4 MB view details)

Uploaded Python 3 Windows x86

playwright-1.37.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (35.6 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.37.0-py3-none-manylinux1_x86_64.whl (35.7 MB view details)

Uploaded Python 3

playwright-1.37.0-py3-none-macosx_11_0_universal2.whl (33.3 MB view details)

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

playwright-1.37.0-py3-none-macosx_11_0_arm64.whl (31.7 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.37.0-py3-none-macosx_10_13_x86_64.whl (33.3 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.37.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 678b9926be2df06321d11a525d4bf08d9f4a5b151354a3b82fe2ac14476322d5
MD5 9c2582b633b8ca85eb02d0f7f04aede4
BLAKE2b-256 d6ffe091a3d81bfd5602e2b4bc5df748b258a551a0ba09c7489694a4357dfa80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.37.0-py3-none-win32.whl
  • Upload date:
  • Size: 29.4 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for playwright-1.37.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 8b5d96aae54289129ab19d3d0e2e431171ae3e5d88d49a10900dcbe569a27d43
MD5 2132d910e362fa40a16a7a20c661dc27
BLAKE2b-256 4f3e6ce02f8e3ca4c292585455a3214668b2715592de3f4329646b3dc3e6880d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.37.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b574889ef97b7f44a633aa10d72b8966a850a4354d915fd0bc7e8658e825dd63
MD5 db14c159db365266d2dee31854c11097
BLAKE2b-256 0b03f60aee90368a5bdc29140d84d74789bc34aa379fd93b57e4906be9cbf2d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.37.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 41f0280472af94c426e941f6a969ff6a7ea156dc15fd01d09ac4b8f092e2346e
MD5 81a752b7a1f9077ab40b54c9e53494e8
BLAKE2b-256 a643a7ff635b8be554345fa712b15e1ff60c073bb78474c797bd93c4a99aec5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.37.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 428fdf9bfff586b73f96df53692d50d422afb93ca4650624f61e8181f548fed2
MD5 7731944e86fc08de522ac35d96ec99ef
BLAKE2b-256 c9ba3b2f992dd7fdf72161baccff073963e8e4de683eaaa575c2eef10e1bb5ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.37.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68d56efe5ce916bab349177e90726837a6f0cae77ebd6a5200f5333b787b25fb
MD5 74a8802970c026d4a09eea86dd8e12bd
BLAKE2b-256 4e58d89d3f5e2fba86c69c512aa4b12dd4099400480a494602ea73805a02578b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.37.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b476f63251876f1625f490af8d58ec0db90b555c623b7f54105f91d33878c06d
MD5 04ee9ed9440f8e8a423da45cd03df78b
BLAKE2b-256 9b67d6e048a7c10e4cd9cb8f8c8953bad13db2b77d35c7908d792cec9a7fe863

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