Name | playwright JSON |
Version |
1.49.1
JSON |
| download |
home_page | None |
Summary | A high-level API to automate web browsers |
upload_time | 2024-12-10 17:32:14 |
maintainer | None |
docs_url | None |
author | Microsoft Corporation |
requires_python | >=3.9 |
license | Apache-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 -->131.0.6778.33<!-- GEN:stop --> | ✅ | ✅ | ✅ |
| WebKit <!-- GEN:webkit-version -->18.2<!-- GEN:stop --> | ✅ | ✅ | ✅ |
| Firefox <!-- GEN:firefox-version -->132.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": null,
"name": "playwright",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"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 -->131.0.6778.33<!-- GEN:stop --> | \u2705 | \u2705 | \u2705 |\n| WebKit <!-- GEN:webkit-version -->18.2<!-- GEN:stop --> | \u2705 | \u2705 | \u2705 |\n| Firefox <!-- GEN:firefox-version -->132.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.49.1",
"project_urls": {
"Release notes": "https://github.com/microsoft/playwright-python/releases",
"homepage": "https://github.com/Microsoft/playwright-python"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "abbe01025581052e43eb698092c4328d7497ca62bcb5c83f15a611d4a71b4b92",
"md5": "4d9af056e9d589830c2bc6965e148e13",
"sha256": "1041ffb45a0d0bc44d698d3a5aa3ac4b67c9bd03540da43a0b70616ad52592b8"
},
"downloads": -1,
"filename": "playwright-1.49.1-py3-none-macosx_10_13_x86_64.whl",
"has_sig": false,
"md5_digest": "4d9af056e9d589830c2bc6965e148e13",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 39559859,
"upload_time": "2024-12-10T17:32:14",
"upload_time_iso_8601": "2024-12-10T17:32:14.907102Z",
"url": "https://files.pythonhosted.org/packages/ab/be/01025581052e43eb698092c4328d7497ca62bcb5c83f15a611d4a71b4b92/playwright-1.49.1-py3-none-macosx_10_13_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7925ef1010a42cc7d576282015d983c5451d73e369b198b6eb32a177fae281f8",
"md5": "f8f4def99eeb597d9e65cb4ed920be8b",
"sha256": "9f38ed3d0c1f4e0a6d1c92e73dd9a61f8855133249d6f0cec28648d38a7137be"
},
"downloads": -1,
"filename": "playwright-1.49.1-py3-none-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "f8f4def99eeb597d9e65cb4ed920be8b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 38808973,
"upload_time": "2024-12-10T17:32:22",
"upload_time_iso_8601": "2024-12-10T17:32:22.516580Z",
"url": "https://files.pythonhosted.org/packages/79/25/ef1010a42cc7d576282015d983c5451d73e369b198b6eb32a177fae281f8/playwright-1.49.1-py3-none-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "704b3930cf10f303a10d493a382e4448aaff898b4065698b3b8d92f902e53e08",
"md5": "c24958f350dcd27d08e06c38107c437b",
"sha256": "3be48c6d26dc819ca0a26567c1ae36a980a0303dcd4249feb6f59e115aaddfb8"
},
"downloads": -1,
"filename": "playwright-1.49.1-py3-none-macosx_11_0_universal2.whl",
"has_sig": false,
"md5_digest": "c24958f350dcd27d08e06c38107c437b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 39559863,
"upload_time": "2024-12-10T17:32:29",
"upload_time_iso_8601": "2024-12-10T17:32:29.120282Z",
"url": "https://files.pythonhosted.org/packages/70/4b/3930cf10f303a10d493a382e4448aaff898b4065698b3b8d92f902e53e08/playwright-1.49.1-py3-none-macosx_11_0_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9ac1ea765e72a746dc7ec2ce155ffea29d454e7171db78f3c09185e888387246",
"md5": "f41b18351465b972f00e7307da6348d8",
"sha256": "753ca90ee31b4b03d165cfd36e477309ebf2b4381953f2a982ff612d85b147d2"
},
"downloads": -1,
"filename": "playwright-1.49.1-py3-none-manylinux1_x86_64.whl",
"has_sig": false,
"md5_digest": "f41b18351465b972f00e7307da6348d8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 44163300,
"upload_time": "2024-12-10T17:32:35",
"upload_time_iso_8601": "2024-12-10T17:32:35.647846Z",
"url": "https://files.pythonhosted.org/packages/9a/c1/ea765e72a746dc7ec2ce155ffea29d454e7171db78f3c09185e888387246/playwright-1.49.1-py3-none-manylinux1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5a5295efac704bf36b770a2522d88a6dee298042845d10bfb35f7ca0fcc36d91",
"md5": "53b047d02e2ac7919afa13d3be75b0c2",
"sha256": "cd9bc8dab37aa25198a01f555f0a2e2c3813fe200fef018ac34dfe86b34994b9"
},
"downloads": -1,
"filename": "playwright-1.49.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "53b047d02e2ac7919afa13d3be75b0c2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 43744353,
"upload_time": "2024-12-10T17:32:43",
"upload_time_iso_8601": "2024-12-10T17:32:43.189075Z",
"url": "https://files.pythonhosted.org/packages/5a/52/95efac704bf36b770a2522d88a6dee298042845d10bfb35f7ca0fcc36d91/playwright-1.49.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f997a3fccc9aaa6da83890772e9980703b0ea6b1e1ad42042fb50df3aef6c641",
"md5": "c659641004f0a5d39142ae3325e3e28e",
"sha256": "43b304be67f096058e587dac453ece550eff87b8fbed28de30f4f022cc1745bb"
},
"downloads": -1,
"filename": "playwright-1.49.1-py3-none-win32.whl",
"has_sig": false,
"md5_digest": "c659641004f0a5d39142ae3325e3e28e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 34060663,
"upload_time": "2024-12-10T17:32:49",
"upload_time_iso_8601": "2024-12-10T17:32:49.904768Z",
"url": "https://files.pythonhosted.org/packages/f9/97/a3fccc9aaa6da83890772e9980703b0ea6b1e1ad42042fb50df3aef6c641/playwright-1.49.1-py3-none-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "71a9bd88ac0bd498c91aab3aba2e393d1fa59f72a7243e9265ccbf4861ca4f64",
"md5": "941e0d6cedc08b1e9d0aac2e7e74cb56",
"sha256": "47b23cb346283278f5b4d1e1990bcb6d6302f80c0aa0ca93dd0601a1400191df"
},
"downloads": -1,
"filename": "playwright-1.49.1-py3-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "941e0d6cedc08b1e9d0aac2e7e74cb56",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 34060667,
"upload_time": "2024-12-10T17:32:56",
"upload_time_iso_8601": "2024-12-10T17:32:56.459383Z",
"url": "https://files.pythonhosted.org/packages/71/a9/bd88ac0bd498c91aab3aba2e393d1fa59f72a7243e9265ccbf4861ca4f64/playwright-1.49.1-py3-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-10 17:32:14",
"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"
}