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

Uploaded Python 3Windows x86-64

playwright_firefox-1.0.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (45.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

File details

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

File metadata

File hashes

Hashes for playwright_firefox-1.0.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4d710b105ee44688ced04d82c94917eaae86d2ac8b162f3d47eb536506d1e9e7
MD5 6186cba233ff9fe97e4650ac6c265c5e
BLAKE2b-256 b40dc98e0c01900747efa6a9ce981edca5696faf6e451f3ed82f653cff26a63b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright_firefox-1.0.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9592abbc4226bfafb2d4e15fa8ace512a803e83e9eade213f8405a1d17c025d2
MD5 042e4f58047ca135d240baa7cf726c51
BLAKE2b-256 b9ecf6d85f7315e3050197271bcbe7d0adf876fde5abf01f20974cad43aab5f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for playwright_firefox-1.0.4-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 462e0f41ae893a2974bc602adbf02f661f38b67837424af383a226b22ddf47db
MD5 01c1289787065a429705cbbf2d24954a
BLAKE2b-256 00d46c3e60332b802ab3439e94a77b8b782e7388389d18b793fe8316c19fe31b

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