{"repo":"koishijs/koishi-plugin-puppeteer","free":true,"listed":false,"github":"https://github.com/koishijs/koishi-plugin-puppeteer","clone":"git clone https://github.com/koishijs/koishi-plugin-puppeteer.git","description":"Browser service | 浏览器服务","language":"TypeScript","stars":14,"topics":["puppeteer"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"koishi-plugin-puppeteer 浏览器 API 服务，可用于网页截图等。 注意：为了正常使用这个插件，你首先需要确保你的电脑上已经安装有 Chromium。同时，我们建议你保持 Chromium 和本插件的更新，因为版本不匹配可能会导致本插件无法正常使用。 类：Puppeteer 可以通过 ctx.puppeteer 访问。 puppeteer.launch() - 返回值: Promise 启动并连接浏览器。 puppeteer.close() - 返回值: Promise 关闭浏览器并取消连接。 puppeteer.page() - 返回值: Promise 创建一个新页面。 puppeteer.render(content, callback?) - content: string 要渲染的 HTML - callback: (page, next) = Promise 回调函数 - page: Page 页面实例 - next: (handle: ElementHandle) = Promise 渲染函数 - 返回值: string 渲染一个 HTML 页面。","default_branch":null,"files":null,"tree":[],"storefront":"/r/koishijs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/koishijs/koishi-plugin-puppeteer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}