chendefine/dsh-web-fetch-playwright0

dsh-web-fetch-playwright

使用真实浏览器渲染网页并提取正文

AI 分析

适合需要对复杂网页进行高保真爬取、去噪并转为Markdown的任务。

包名
dsh-web-fetch-playwright
版本
0.1.1
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:chendefine/dsh-web-fetch-playwright

Configuration

The settings card (设置 → 插件 → 插件配置 → Playwright 网页爬取) edits the web-fetch-playwright settings section live:

FieldDefaultDescription
backendlocalRadio: 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.
cdpEndpoint127.0.0.1:9222Remote backend: host:port, http(s)://… or ws(s)://….
denoisetrueRun the denoise pipeline; off returns the full rendered HTML for the tool layer to convert.

Local backend resolution order:

  1. The configured path (auto-detected as Playwright CLI or browser binary).
  2. A playwright executable on $PATH (its package knows that installation's browser registry).
  3. The bundled playwright-core — requires PLAYWRIGHT_BROWSERS_PATH or browsers in the default cache; otherwise the error suggests playwright 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.