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 139.0.7258.5
WebKit 26.0
Firefox 140.0.2

Documentation

https://playwright.dev/python/docs/intro

API Reference

https://playwright.dev/python/docs/api/class-playwright

Example

from playwright_firefox.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_firefox.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

If you're not sure about the file name format, learn more about wheel file names.

playwright_firefox-1.0.3-py3-none-win_amd64.whl (29.5 MB view details)

Uploaded Python 3Windows x86-64

playwright_firefox-1.0.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

File details

Details for the file playwright_firefox-1.0.3-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for playwright_firefox-1.0.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b4741a274ba79b6eb83f5d3287583e5943bf6785a4d2177134af187899510441
MD5 ff268a02fd60926806fed1b44dc522ea
BLAKE2b-256 94fc287c18563e23057ca9652e0e3d3c9d908197bf9803bf54b0d164241ba5b3

See more details on using hashes here.

File details

Details for the file playwright_firefox-1.0.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for playwright_firefox-1.0.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9ff34f10cf482d96eeb68257b1867360c6d5b91bed38de8cbca87b7b38c7cb20
MD5 122b41cc26384908fa15fe1e9bd97469
BLAKE2b-256 f137feb399a97b24c2aa27934b7144f868be88c22ea3b7a27131463ad5a8dbd8

See more details on using hashes here.

File details

Details for the file playwright_firefox-1.0.3-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for playwright_firefox-1.0.3-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6e36b0e069919bcaa295462a4a1ff2cb85e2b4c8995325e6bc3fd97bc662b94f
MD5 f43f49a018e19d9b75f2d5ff6b0e8b26
BLAKE2b-256 5f5bbc11c783b4e5e7cd92e23c4e7bd30ba1748bc10721cf5928fb5c909e9633

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