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-0.0.0-py3-none-win_amd64.whl (29.4 MB view details)

Uploaded Python 3Windows x86-64

playwright_firefox-0.0.0-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-0.0.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for playwright_firefox-0.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6af2842aa0684df8a2652f841337b7cf0ef7bd32897e651329d0d978b00ac476
MD5 05b10dbec6bbb57e2858064f4d24e0c2
BLAKE2b-256 10a2a685acd99c855ba8524977b0f51c420267a5ecb9a2b07f1b71c949099d50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright_firefox-0.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c32b1d59b024654f64eaf0a3539f03f8bf457d38b3e8c1a7f17538aaa1d00652
MD5 b5cbfa2f56f07d24ac391e70da28b181
BLAKE2b-256 e615891d1e33195eb8ae4838edef9639c39b896ffeaf63da9d7c457894917bbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright_firefox-0.0.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8891627f2f673dc04ee1351ec2f518bf6b1cf7329c8d74db62fee80f0162c319
MD5 73bb851bc70159b2612d4f96fc1efc6d
BLAKE2b-256 3f5440ed842c162e2f2d218b0b18cc6688f6a862c33f35c3d14eb8c980b3377b

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