chendefine/dsh-web-fetch-playwright ↗★ 0
dsh-web-fetch-playwright
使用真实浏览器渲染网页并提取正文
AI 分析
适合需要对复杂网页进行高保真爬取、去噪并转为Markdown的任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:chendefine/dsh-web-fetch-playwright说明文档
阅读完整 README ↗Configuration
The settings card (设置 → 插件 → 插件配置 → Playwright 网页爬取) edits the web-fetch-playwright settings section live:
| Field | Default | Description |
|---|---|---|
backend | local | Radio: Local Playwright or Remote CDP endpoint, each with its own nested input. |
playwrightPath | (blank) | Local backend: path to a playwright executable or a Chromium-family browser binary. Blank = discover on $PATH, then fall back to the bundled playwright-core. |
cdpEndpoint | 127.0.0.1:9222 | Remote backend: host:port, http(s)://… or ws(s)://…. |
denoise | true | Run the denoise pipeline; off returns the full rendered HTML for the tool layer to convert. |
Local backend resolution order:
- The configured path (auto-detected as Playwright CLI or browser binary).
- A
playwrightexecutable on$PATH(its package knows that installation's browser registry). - The bundled
playwright-core— requiresPLAYWRIGHT_BROWSERS_PATHor browsers in the default cache; otherwise the error suggestsplaywright install chromium.
CDP mode needs no local browser: it connects fresh per fetch and uses an isolated context, so it never pollutes an existing browser session.