asdshuaishuai/websearch-plugins0

websearch-plugins

A standard DeepSeek Harness (dsh) plugin: API-key-free aggregate web search across 16 domestic + overseas engines with result-layer failure filtering, a dedicated always-on headless Blink/Chromium renderer, and a direct target-URL fetch (web_fetch) with SSRF protection — all behind the ctx.web seam.

包名
websearch-plugins
版本
0.5.0
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:asdshuaishuai/websearch-plugins

配置

web-search-phantomconfig: 里全部可选:

config:
  engineCount: 5            # 聚合时每个引擎取的条数(默认 5)
  aggregateMaxResults: 10   # 无 maxResults 时的总条数上限
  engineTimeoutMs: 7000     # 每个引擎的默认超时(毫秒);通不了的引擎按此快速过滤
  include: [baidu, bing, google]   # 只聚合这些引擎(默认全部)
  blockedHosts: [...]              # 额外过滤的域名
  fetchMode: auto           # http(纯浏览器式抓取) | chrome(恒走常驻无头渲染) | auto(HTTP优先,JS壳自动渲染兜底)
  chrome:                   # 常驻无头 Blink 渲染服务参数
    path: ""                # 留空自动探测(优先极简 headless-shell,其次 chrome/chromium)
    timeoutMs: 7000         # 单次渲染超时
    settleMs: 400           # 加载完成后再等 JS 出 markup 的缓冲
    virtualTime: 1500       # 一次性渲染兜底的 virtual-time 预算
    browserTimeoutMs: 12000 # 常驻浏览器启动超时
  engines:                  # 单引擎覆盖(可带 fetchMode)
    bing:    { count: 8, timeoutMs: 5000 }
    baidu:   { count: 5 }
    smcn:    { fetchMode: chrome }   # 例:神马强制无头渲染
  userAgent: "Mozilla/5.0 ..."
  fetch:                    # web_fetch
    timeoutMs: 15000
    maxBytesHtml: 1048576
    maxBytesText: 524288
    maxRedirects: 5

失败归因速查:网络不通(Google/DDG/Brave/Qwant/Yahoo/Startpage/SearXNG 在本机超时) 属出口环境问题,暂不处理;IP 层风控(神马/Yandex 验证码、Mojeek 403)连真无头浏览器都过不去, 结果层自动过滤;换到放行网络它们才会上。解析器对各引擎真模板均可用。