langchain_community.tools.playwright.utils.create_async_playwright_browser

langchain_community.tools.playwright.utils.create_async_playwright_browser(headless: bool = True, args: Optional[List[str]] = None) AsyncBrowser[源代码]

创建一个异步 Playwright 浏览器。

参数
  • headless (bool) – 是否以无头模式运行浏览器。默认为 True。

  • args (可选 [ str [] ]) – 传递给 browser.chromium.launch 的参数

返回

Playwright 浏览器。

返回类型

AsyncBrowser

使用 create_async_playwright_browser 的示例