Skip to content

v0.1.0

Choose a tag to compare

@2672243194 2672243194 released this 16 Aug 11:45
· 3 commits to main since this release

v0.1.0(首个版本)

fetch_data(url, api?, fields?, maxItems?) — 结构化数据提取插件(DSH 生态首创「拦截页面数据 API」定位)

  • Playwright 拦截页面所有 JSON 响应(XHR/fetch),自动选中「含数组且最大」的数据接口
  • 结构模式(不带 fields):返回选中接口 2 层结构 + 全部接口清单,模型可 api= 手动指定
  • 字段模式(带 fields):点号+[] 通配字段路径精确提取,数组按 maxItems 截断
  • 紧凑 render、静态 schema(KV 缓存友好)、ctx.effect 浏览器清理、协作超时

测试:11 零依赖断言 + 11 真实拦截断言;B 站排行榜真实提取验证(ranking/v2,137KB list[100])