Repository navigation
Releases
Releases · BaihaWhite/dsh-web-search-scrape
v1.3.1 — 修复 DDG 丢结果与重复项
修复
DuckDuckGo 解析的两个缺陷,都会直接影响检索质量:
| 缺陷 | 后果 |
|---|---|
uddgUrl 对非跳转的直接链接返回空串 |
parseDdgHtml 里 if (!url) continue 把 DDG 给出的直链结果全部静默丢弃 |
parseDdgLite 未解包 l/?uddg= 跳转 |
lite 端点的包装链接与 html 端点的直链在去重集合里是两个不同 URL → 同一篇文章出现两次 |
实测(同一查询):结果里 URL 含 duckduckgo.com/l/ 的条数 5 → 0,且直链不再丢失。
安装 / 升级
# 新装
dsh plugin --profile web add github:BaihaWhite/dsh-web-search-scrape#v1.3.1
# 已装(需把 spec 指到新 tag)
dsh plugin --profile web add github:BaihaWhite/dsh-web-search-scrape#v1.3.1装完重启 host(dsh web)生效。要求 DSH >= 0.1.5-rc.2。
v1.3.0 — 计费硬保险 + web_search_deep + 零配置安装
安装
# 作为依赖安装(零配置:仓库自带 dsh.bundle.patch,安装即自动应用 profile 补丁)
dsh plugin --profile web add github:BaihaWhite/dsh-web-search-scrape本次要点
💰 计费硬保险(新增)
抓取本身免费;会花钱的只有两处,现在都不可能误触发:
| 成本点 | 计费方式 | 硬开关 |
|---|---|---|
backend: official |
Messages API,按 token 计费 | allowOfficial: false(默认)——未授权时官方路径直接报错且零网络请求 |
| T4–T6 的 LLM 子代理 | 按会话模型计费 | maxAutoTier: 3——自动档位封顶,防「分析/对比/趋势」等常见词静默升档 |
其它
web_search_deep:DSH ≥0.1.5 的web_search由 agent 预设注册并遮蔽同名工具,本插件另注册一个名字不同的深度工具(带tier、结果上限 130),任何预设下都可用。dsh.bundle.patch:仓库自带补丁,dsh plugin add即自动挂载,无需手工编辑 profile 配置。- 修复 DSH 0.1.5-rc.2 兼容性(设置 API 迁移、客户端 slot
key、setSourcethunk bug)。 - 设置卡片默认收起,展开状态持久化。
- MIT 许可。
校验
npm pack 产物: web-search-scrape-1.3.0.tgz
包大小 39.0 kB / 解包 114.9 kB / 6 文件
sha512-EUKVkSymlFuL7...l6faPVz84sh6w==
要求 DSH >= 0.1.5-rc.2(见 package.json 的 dsh.engines.dsh)。
详见 README。