playwright


Nameplaywright JSON
Version 1.43.0 PyPI version JSON
download
home_pagehttps://github.com/Microsoft/playwright-python
SummaryA high-level API to automate web browsers
upload_time2024-04-09 10:38:04
maintainerNone
docs_urlNone
authorMicrosoft Corporation
requires_python>=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 🎭 [Playwright](https://playwright.dev) for Python [![PyPI version](https://badge.fury.io/py/playwright.svg)](https://pypi.python.org/pypi/playwright/) [![Anaconda version](https://img.shields.io/conda/v/microsoft/playwright)](https://anaconda.org/Microsoft/playwright) [![Join Discord](https://img.shields.io/badge/join-discord-infomational)](https://aka.ms/playwright/discord)

Playwright is a Python library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) browsers with a single API. Playwright delivers automation that is **ever-green**, **capable**, **reliable** and **fast**. [See how Playwright is better](https://playwright.dev/python).

|          | Linux | macOS | Windows |
|   :---   | :---: | :---: | :---:   |
| Chromium <!-- GEN:chromium-version -->124.0.6367.29<!-- GEN:stop --> | ✅ | ✅ | ✅ |
| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | ✅ | ✅ | ✅ |
| Firefox <!-- GEN:firefox-version -->124.0<!-- GEN:stop --> | ✅ | ✅ | ✅ |

## Documentation

[https://playwright.dev/python/docs/intro](https://playwright.dev/python/docs/intro)

## API Reference

[https://playwright.dev/python/docs/api/class-playwright](https://playwright.dev/python/docs/api/class-playwright)

## Example

```py
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()
```

```py
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](https://playwright.dev) is also available in
- [Node.js (JavaScript / TypeScript)](https://playwright.dev/docs/intro),
- [.NET](https://playwright.dev/dotnet/docs/intro),
- [Java](https://playwright.dev/java/docs/intro).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Microsoft/playwright-python",
    "name": "playwright",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Microsoft Corporation",
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# \ud83c\udfad [Playwright](https://playwright.dev) for Python [![PyPI version](https://badge.fury.io/py/playwright.svg)](https://pypi.python.org/pypi/playwright/) [![Anaconda version](https://img.shields.io/conda/v/microsoft/playwright)](https://anaconda.org/Microsoft/playwright) [![Join Discord](https://img.shields.io/badge/join-discord-infomational)](https://aka.ms/playwright/discord)\n\nPlaywright is a Python library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) browsers with a single API. Playwright delivers automation that is **ever-green**, **capable**, **reliable** and **fast**. [See how Playwright is better](https://playwright.dev/python).\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->124.0.6367.29<!-- GEN:stop --> | \u2705 | \u2705 | \u2705 |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | \u2705 | \u2705 | \u2705 |\n| Firefox <!-- GEN:firefox-version -->124.0<!-- GEN:stop --> | \u2705 | \u2705 | \u2705 |\n\n## Documentation\n\n[https://playwright.dev/python/docs/intro](https://playwright.dev/python/docs/intro)\n\n## API Reference\n\n[https://playwright.dev/python/docs/api/class-playwright](https://playwright.dev/python/docs/api/class-playwright)\n\n## Example\n\n```py\nfrom playwright.sync_api import sync_playwright\n\nwith sync_playwright() as p:\n    for browser_type in [p.chromium, p.firefox, p.webkit]:\n        browser = browser_type.launch()\n        page = browser.new_page()\n        page.goto('http://playwright.dev')\n        page.screenshot(path=f'example-{browser_type.name}.png')\n        browser.close()\n```\n\n```py\nimport asyncio\nfrom playwright.async_api import async_playwright\n\nasync def main():\n    async with async_playwright() as p:\n        for browser_type in [p.chromium, p.firefox, p.webkit]:\n            browser = await browser_type.launch()\n            page = await browser.new_page()\n            await page.goto('http://playwright.dev')\n            await page.screenshot(path=f'example-{browser_type.name}.png')\n            await browser.close()\n\nasyncio.run(main())\n```\n\n## Other languages\n\nMore comfortable in another programming language? [Playwright](https://playwright.dev) is also available in\n- [Node.js (JavaScript / TypeScript)](https://playwright.dev/docs/intro),\n- [.NET](https://playwright.dev/dotnet/docs/intro),\n- [Java](https://playwright.dev/java/docs/intro).\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "A high-level API to automate web browsers",
    "version": "1.43.0",
    "project_urls": {
        "Homepage": "https://github.com/Microsoft/playwright-python",
        "Release notes": "https://github.com/microsoft/playwright-python/releases"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6210f0638cbcd25d2e5d06e23aa55f4a575b062e6f35670a46adc53dd5ebcc63",
                "md5": "afb80d193bbb151a65a8e3d67ec35b92",
                "sha256": "b03b12bd4da9c2cfb78dff820deac8b52892fe3c2f89a4d95d6f08c59e41deb9"
            },
            "downloads": -1,
            "filename": "playwright-1.43.0-py3-none-macosx_10_13_x86_64.whl",
            "has_sig": false,
            "md5_digest": "afb80d193bbb151a65a8e3d67ec35b92",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 34294956,
            "upload_time": "2024-04-09T10:38:04",
            "upload_time_iso_8601": "2024-04-09T10:38:04.736779Z",
            "url": "https://files.pythonhosted.org/packages/62/10/f0638cbcd25d2e5d06e23aa55f4a575b062e6f35670a46adc53dd5ebcc63/playwright-1.43.0-py3-none-macosx_10_13_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4dfce7c1a8696911e5faaa5c480f649deccf633aa2a235c91664748471490576",
                "md5": "fef7e33ad47f31900db6d388b7b82f47",
                "sha256": "e9ec21b141727392f630761c7f4dec46d80c98243614257cc501b64ff636d337"
            },
            "downloads": -1,
            "filename": "playwright-1.43.0-py3-none-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "fef7e33ad47f31900db6d388b7b82f47",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 32632083,
            "upload_time": "2024-04-09T10:38:11",
            "upload_time_iso_8601": "2024-04-09T10:38:11.038671Z",
            "url": "https://files.pythonhosted.org/packages/4d/fc/e7c1a8696911e5faaa5c480f649deccf633aa2a235c91664748471490576/playwright-1.43.0-py3-none-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e2c8ad2c5ca177c0665648dff1f03d45a965fdcae7ff43849947c98e90f0082e",
                "md5": "b9f8e5c35e1ddd45c48c760e98a60d36",
                "sha256": "e05a8d8fb2040c630429cca07e843c8fa33059717837c8f50c01b7d1fc651ce1"
            },
            "downloads": -1,
            "filename": "playwright-1.43.0-py3-none-macosx_11_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "b9f8e5c35e1ddd45c48c760e98a60d36",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 34294953,
            "upload_time": "2024-04-09T10:38:15",
            "upload_time_iso_8601": "2024-04-09T10:38:15.983278Z",
            "url": "https://files.pythonhosted.org/packages/e2/c8/ad2c5ca177c0665648dff1f03d45a965fdcae7ff43849947c98e90f0082e/playwright-1.43.0-py3-none-macosx_11_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8b5cfe3e42ea46038ec69a0c0fd4b8f8d9a633577f5b3c0368b67d73ee33e910",
                "md5": "2590720768c38cae5721df39787139e0",
                "sha256": "50d9a5c07c76456945a2296d63f78fdf6eb11aed3e8d39bb5ccbda760a8d6d41"
            },
            "downloads": -1,
            "filename": "playwright-1.43.0-py3-none-manylinux1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "2590720768c38cae5721df39787139e0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 37346891,
            "upload_time": "2024-04-09T10:38:20",
            "upload_time_iso_8601": "2024-04-09T10:38:20.963033Z",
            "url": "https://files.pythonhosted.org/packages/8b/5c/fe3e42ea46038ec69a0c0fd4b8f8d9a633577f5b3c0368b67d73ee33e910/playwright-1.43.0-py3-none-manylinux1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e45a511e97a2a08a49628ab69f5ad2892e893a177ed69cdb0663c30586bfee63",
                "md5": "c1f1eae5b306e118d1c15476fead1b81",
                "sha256": "87191272c40b4c282cf2c9449ca3acaf705f38ac6e2372270f1617ce16b661b8"
            },
            "downloads": -1,
            "filename": "playwright-1.43.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "c1f1eae5b306e118d1c15476fead1b81",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 37093964,
            "upload_time": "2024-04-09T10:38:25",
            "upload_time_iso_8601": "2024-04-09T10:38:25.811915Z",
            "url": "https://files.pythonhosted.org/packages/e4/5a/511e97a2a08a49628ab69f5ad2892e893a177ed69cdb0663c30586bfee63/playwright-1.43.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4aa3c3d10726e3f9ffbc50a3dbf6566aefd806f614af4807674f3c07ea357a52",
                "md5": "cc223e5bbb92c75a72de84aacae223ee",
                "sha256": "bd8b818904b17e2914be23e7bc2a340b203f57fe81678520b10f908485b056ea"
            },
            "downloads": -1,
            "filename": "playwright-1.43.0-py3-none-win32.whl",
            "has_sig": false,
            "md5_digest": "cc223e5bbb92c75a72de84aacae223ee",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 29407139,
            "upload_time": "2024-04-09T10:38:31",
            "upload_time_iso_8601": "2024-04-09T10:38:31.133742Z",
            "url": "https://files.pythonhosted.org/packages/4a/a3/c3d10726e3f9ffbc50a3dbf6566aefd806f614af4807674f3c07ea357a52/playwright-1.43.0-py3-none-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "33a10bfb6705415a7a268b693b10fbbf6638bcbf86a8ea7db735f67ef6252cf7",
                "md5": "3fbdba181a3fe7b440342a71a3eee03f",
                "sha256": "9b7bd707eeeaebee47f656b2de90aa9bd85e9ca2c6af7a08efd73896299e4d50"
            },
            "downloads": -1,
            "filename": "playwright-1.43.0-py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "3fbdba181a3fe7b440342a71a3eee03f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 29407143,
            "upload_time": "2024-04-09T10:38:35",
            "upload_time_iso_8601": "2024-04-09T10:38:35.502914Z",
            "url": "https://files.pythonhosted.org/packages/33/a1/0bfb6705415a7a268b693b10fbbf6638bcbf86a8ea7db735f67ef6252cf7/playwright-1.43.0-py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-09 10:38:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Microsoft",
    "github_project": "playwright-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "playwright"
}
        
Elapsed time: 0.28413s