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 93.0.4576.0
WebKit 14.2
Firefox 90.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://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.13.1-py3-none-win_amd64.whl (15.2 MB view details)

Uploaded Python 3 Windows x86-64

playwright-1.13.1-py3-none-win32.whl (13.6 MB view details)

Uploaded Python 3 Windows x86

playwright-1.13.1-py3-none-manylinux1_x86_64.whl (20.5 MB view details)

Uploaded Python 3

playwright-1.13.1-py3-none-macosx_11_0_universal2.whl (18.2 MB view details)

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

playwright-1.13.1-py3-none-macosx_10_13_x86_64.whl (18.2 MB view details)

Uploaded Python 3 macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: playwright-1.13.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 15.2 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for playwright-1.13.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d99a7a13c39e6571ba3a4cbed1e772a24742ec1099d4cb6486394752eb725c08
MD5 1f3aafa330a1c0ecf55899ad697f958e
BLAKE2b-256 83b6baa5f83792ddc9a082ef252518d6645b3b2f67df9547f8b6325ad3cae632

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.13.1-py3-none-win32.whl
  • Upload date:
  • Size: 13.6 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for playwright-1.13.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 b08271b01051094f5ea6b3f89feb5fbffd7131df6243eee2cdcea9845a58e0b3
MD5 1533209a474bc54f993594743ab44065
BLAKE2b-256 e05ff210f43e3689d31d4f50f6e4e4bc5ab11526150f4fdd9cda91ea597a52c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.13.1-py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 20.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for playwright-1.13.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f3fac1509f3fa5a121e396c2ed57889a8bfe5785435ac0ae8fcce94045853e0b
MD5 01a7e33ce8b392cb133ae122f839c4d1
BLAKE2b-256 ff01da81144654be0dcfcda0ebdc890144f8e5bec2e5f3c71d460758ffd93236

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.13.1-py3-none-macosx_11_0_universal2.whl
  • Upload date:
  • Size: 18.2 MB
  • Tags: Python 3, macOS 11.0+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for playwright-1.13.1-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 3214444249ae5b36ff7c5e378dd151977cee2c4d4a6c05e8a19ce373331ce66e
MD5 07db3368ec2c6751e8465e9f331f2ca3
BLAKE2b-256 efd96f3e8b7cabc4409869418b902de616a56c4b2fb04bbb3935f9daf6d09968

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright-1.13.1-py3-none-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 18.2 MB
  • Tags: Python 3, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for playwright-1.13.1-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c35faa9f2a75899635e92effeebcae6175526f34f4d11c20d61356e3d9b8d2e4
MD5 6ddff0ac6602922b4a6d0b259d73e46c
BLAKE2b-256 86853ba56cb5880c7ce5e647d82c014c3077c16be111097616b08812b98bb7d8

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