{"id":13461669,"url":"https://github.com/microsoft/playwright-python","last_synced_at":"2025-05-12T20:41:41.288Z","repository":{"id":37397434,"uuid":"276414382","full_name":"microsoft/playwright-python","owner":"microsoft","description":"Python version of the Playwright testing and automation library.","archived":false,"fork":false,"pushed_at":"2025-04-14T17:36:28.000Z","size":8338,"stargazers_count":12935,"open_issues_count":48,"forks_count":984,"subscribers_count":153,"default_branch":"main","last_synced_at":"2025-04-27T23:43:03.627Z","etag":null,"topics":["chromium","firefox","playwright","webkit"],"latest_commit_sha":null,"homepage":"https://playwright.dev/python/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-01T15:28:13.000Z","updated_at":"2025-04-27T13:01:48.000Z","dependencies_parsed_at":"2023-09-22T08:26:50.461Z","dependency_job_id":"405ccb23-88ea-45be-a54a-27eedd111911","html_url":"https://github.com/microsoft/playwright-python","commit_stats":{"total_commits":884,"total_committers":43,"mean_commits":"20.558139534883722","dds":0.5180995475113122,"last_synced_commit":"4ae12bd37016d7fe927076befdd974137fd69704"},"previous_names":[],"tags_count":95,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fplaywright-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fplaywright-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fplaywright-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fplaywright-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/playwright-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252527640,"owners_count":21762738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chromium","firefox","playwright","webkit"],"created_at":"2024-07-31T11:00:51.700Z","updated_at":"2025-05-05T15:54:35.104Z","avatar_url":"https://github.com/microsoft.png","language":"Python","readme":"# 🎭 [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 \u003c!-- GEN:chromium-version --\u003e136.0.7103.25\u003c!-- GEN:stop --\u003e | ✅ | ✅ | ✅ |\n| WebKit \u003c!-- GEN:webkit-version --\u003e18.4\u003c!-- GEN:stop --\u003e | ✅ | ✅ | ✅ |\n| Firefox \u003c!-- GEN:firefox-version --\u003e137.0\u003c!-- GEN:stop --\u003e | ✅ | ✅ | ✅ |\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","funding_links":[],"categories":["Python","Testing","Career Path","Python 程序","自动化测试","\u003c/\u003e Developer Libraries \u0026 Models","🕸️ Web Scraping \u0026 Crawling","Testing Tools","Language Support"],"sub_categories":["网络服务_其他","WebUI自动化","Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fplaywright-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fplaywright-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fplaywright-python/lists"}