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 127.0.6533.17
WebKit 17.4
Firefox 127.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.45.0-py3-none-win_amd64.whl (29.7 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.45.0-py3-none-win32.whl (29.7 MB view details)

Uploaded Python 3 Windows x86

playwright-1.45.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.6 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

playwright-1.45.0-py3-none-macosx_11_0_universal2.whl (34.7 MB view details)

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

playwright-1.45.0-py3-none-macosx_11_0_arm64.whl (33.1 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

playwright-1.45.0-py3-none-macosx_10_13_x86_64.whl (34.7 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

File hashes

Hashes for playwright-1.45.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 701db496928429aec103739e48e3110806bd5cf49456cc95b89f28e1abda71da
MD5 660f59b0dad1a10c93fde58484d7a031
BLAKE2b-256 870fc8dcadb2f0dcfdab6052d5ecf57ccf19b439c0adc29fc510ed0830349345

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for playwright-1.45.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 97a7d53af89af54208b69c051046b462675fcf5b93f7fbfb7c0fa7f813424ee2
MD5 b1612939ceb3537389c5e8e3c7141694
BLAKE2b-256 a573cde84614e51de244fe0cd1d0be7edb4cdedee7d7306f9646468807a22b6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b09fa76614ba2926d45a4c0581f710c13652d5e32290ba6a1490fbafff7f0be8
MD5 41af8aba98029469ad0164c22b42c8c8
BLAKE2b-256 3ab8329494128bc9c90ad4a705e11e33bc1d90e79faf90ee27673c568ad0c8ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0ba5a39f25fb9b9cf1bd48678f44536a29f6d83376329de2dee1567dac220afe
MD5 b8e9c9422b74e771fc7aad6736308224
BLAKE2b-256 a43ed68323360efc63c9565f8f9bc84d1074bb2d4726ec5bb45bd8c9fb72fe1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.0-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 13b5398831f5499580e819ddc996633446a93bf88029e89451e51da188e16ae3
MD5 35f6a2d9d3fad08745c65ba590bf01d9
BLAKE2b-256 f04f2f364f0586d1c0e0b82ee1118505fc5a495f2b385e34575967b8a5fc8302

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 210c9f848820f58b5b5ed48047748620b780ca3acc3e2b7560dafb2bfdd6d90a
MD5 ba2de0fd6457a989346b8c3916f3b542
BLAKE2b-256 f44ed7df2eb27e2f228ec5fb2be453d3c780001ab9b3bd0f7ec5b6568adfe46e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright-1.45.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7d49aee5907d8e72060f04bc299cb6851c2dc44cb227540ade89d7aa529e907a
MD5 2c7905df71007be8aae300d259127a19
BLAKE2b-256 99ee5ffdf7557b601a00fb4e0cc29b140cefc584e8d394ea21cc3a4eb05b4d45

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