chendefine/dsh-web-fetch-playwright

chendefine★ 0TypeScript最后同步: 2026-08-22

在 GitHub 打开

Playwright/CDP web-fetch provider for DeepSeek Harness: renders pages in a real browser, denoises them (Readability + DOMPurify), and returns markdown.

README 摘要

dsh-web-fetch-playwright 中文 · npm · GitHub A DeepSeek Harness (DSH) plugin that gives the built-in web fetch tool a Playwright/CDP backend : pages are rendered in a real browser, denoised with Readability + DOMPurify + Turndown + GFM , and returned as Markdown. Features - Real browser rendering — loads the page the way a user sees it, so client-side rendered (SPA) content is captured, not just the raw HTML. - Denoise pipeline — Mozilla Readability extracts the article, DOMPurify removes layout/noise tags (nav, sidebar, footer, ads, forms), and Turndown with the GFM plugin converts to Markdown with the same style options as the shipped tool-web renderer. - Two backends — launch a local Playwright browser, or drive an already-running browser over its DevTools Protocol (CDP) endpoint. - Browser resolution — a configured path, a playwright CLI on $PATH , or the bundled playwright-core ; CDP needs no local browser at all. - Isolated sessions — every fetch uses its own browser context. Local launches close their browser per fetch; the CDP backend keeps one shared connection to the remote browser and each fetch opens an isolated context (a tab) inside it, closed when done. - Live configur…

在 GitHub 查看完整 README →
工具/开发cordisdeepseek-harnessdshdsh-bundledsh-pluginfetch-providermarkdownplaywright

分类