dsh-web-search-brightdata
v1.0.0
Published
DSH web plugin: Bright Data SERP API search provider for ctx.web with a managed multi-key pool (per-key add/remove/enable/test from Settings), zone config, rotation, and cooldown failover
Downloads
134
Maintainers
Readme
dsh-web-search-brightdata
Bright Data SERP API 搜索 provider,注册进 DSH 的 ctx.web seam。与
dsh-web-search-tavily-pool 同一套待遇:
- Key 池:
~/.dsh/.dsh-web-search-brightdata.json(Settings UI 写入, 权威来源);缺省回退BRIGHTDATA_API_KEYS/BRIGHTDATA_API_KEY(credentials service →~/.dsh/.credentials.yaml直读) - 轮换与冷却:401/403 冷却 30 分钟,429 冷却 1 分钟,其他可重试错误 5 分钟;失败换下一把活跃 key
- zone:池级配置,默认
serp_api_dsh,Settings 里可改 - 解析:默认
data_format: html(URL 精确,解析 organic 锚点 +<h3>标题 +VwiC3b摘要);markdown模式解析### 标题块并用 › 面包屑 重建 URL(尽力而为)。0 结果视为失败,向上一级(strategy)暴露原因 - Settings:"Bright Data SERP" 分区:zone 编辑、key 增删停启用、单把/ 全部测试、重置冷却;全部操作即时热生效
免费额度:Bright Data 注册赠送请求额度(SERP API 亦有 5K 次/月档), 多账号 token 可加多把进池轮换。
安装
./install.sh # 拷入 ~/.dsh/profiles/node_modules 并注册 patch 行或作为 profile 依赖安装(pnpm file: link),再在 cordis.patch.yml 注册:
- insert:
- id: web-search-brightdata
name: 'dsh-web-search-brightdata'strategy 链里把 brightdata 加进 backends(Settings 的 strategy 分区或
~/.dsh/.dsh-web-search-strategy.json)即可参与 fallback/parallel。
