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 98.0.4695.0
WebKit 15.4
Firefox 94.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://whatsmyuseragent.org/')
        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://whatsmyuseragent.org/')
            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.17.1-py3-none-win_amd64.whl (27.5 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.17.1-py3-none-win32.whl (27.5 MB view details)

Uploaded Python 3 Windows x86

playwright-1.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (33.2 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.17.1-py3-none-manylinux1_x86_64.whl (33.3 MB view details)

Uploaded Python 3

playwright-1.17.1-py3-none-macosx_11_0_universal2.whl (30.9 MB view details)

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

playwright-1.17.1-py3-none-macosx_11_0_arm64.whl (29.5 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.17.1-py3-none-macosx_10_13_x86_64.whl (30.9 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: playwright-1.17.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 27.5 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for playwright-1.17.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a8ca9e0e4ea4af07299c0743f87c23e04f989bba37f5ae141bdaa40e720c8b1a
MD5 9344fa21478a1e5f690b9c1605ae875a
BLAKE2b-256 04ccfd92432ef09794ed748abbc9399a5f3ddec65eeebd104412f13f70674345

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.1-py3-none-win32.whl
  • Upload date:
  • Size: 27.5 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for playwright-1.17.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 b4b817a7bae14a99a3e43a9eba706d164ae5f6f48c18f3ebb6dfc09790669f07
MD5 857933f05b575ba297d3c1586787c71d
BLAKE2b-256 d892b35396a1cea8f865deb6512e555722da34200a0426a952fcae6856d2f6f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2301bf64a0ba4ffb2ccf89ce973983290b44ce9a0102d9695d317eee01021154
MD5 b29d2ba5b5cf61404516b0692ecd5fbb
BLAKE2b-256 13bbcb218ed67c955fc9fb61fdb136eee021223ddea83d7cb1d765c9ce0e9320

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.1-py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 33.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for playwright-1.17.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5d87b9a9c0a20de66f52142231cdadad4fc88ce6c6ee213107374ce063362976
MD5 8061a42dc0bc08eeba56f6740a65a6f0
BLAKE2b-256 7d6b984a2db9f8b214ba20871ead70412839b354a614894680bb4b6fb4277ee4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.1-py3-none-macosx_11_0_universal2.whl
  • Upload date:
  • Size: 30.9 MB
  • Tags: Python 3, macOS 11.0+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for playwright-1.17.1-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 41bbcacf6aca27eee0bc89dd3faa1e0f7e72ee6dc4036eb8af89c81f4848dd25
MD5 1896f4decc3841a73011fa6ccf45773f
BLAKE2b-256 018b3a10105e3ca032a907e49033cce0b6a317991b0fa1a507e64d245ca626ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.1-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 29.5 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for playwright-1.17.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 362e8db85bc23e6ae576183bca98fcf1a7ac1c32d0b774fe437cc087a400ae0a
MD5 3d09113fa34b5e98174339571fe5828a
BLAKE2b-256 bc7c7145d46c6559a1250ba0010df240393570ca45ee83dd35e808efce84f19f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.17.1-py3-none-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 30.9 MB
  • Tags: Python 3, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for playwright-1.17.1-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2196dc65d263a8efccedbbe584d6b46d45b8cfa08eeaefbea4378628b1f796a7
MD5 214811a09997e07c0087c7a2a67a88ae
BLAKE2b-256 b8b5267ddfaccc839eb83dd96c229fecd17bcda2d08094e4525021f90dabffc3

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