diff --git a/skills/hotspot-radar/SKILL.md b/skills/hotspot-radar/SKILL.md new file mode 100644 index 0000000..a77aa91 --- /dev/null +++ b/skills/hotspot-radar/SKILL.md @@ -0,0 +1,75 @@ +--- +name: hotspot-radar +description: Hotspot aggregation & analysis module for Sage — 11 builtin parsers, 5-dimension analysis +category: devops +--- + +# Hotspot Radar Module + +指定来源的热点聚合分析平台。11 个内置平台解析器,4 种可配置提取器,五维分析 + 7天半衰期自动分类。 + +## Architecture + +- **Repo**: `git@git.opencomputing.cn:yumoqing/hotspot.git` +- **Tables** (6): `hotspot_source`, `hotspot_schedule`, `hotspot_fetch_log`, `hotspot_item`, `hotspot_analysis`, `hotspot_alert` +- **Python package**: `hotspot/` — `init.py` registers on ServerEnv, `parsers.py` has 11 builtins +- **DSPY**: `import json` + `get_sor_context(env, 'sage')` + `env.run_fetch(sor)` + +## Builtin Parsers (11) + +| parser_name | Platform | API Endpoint | +|---|---|---| +| weibo_hot | 微博热搜 | weibo.com/ajax/side/hotSearch | +| zhihu_hot | 知乎热榜 | zhihu.com/api/v3/feed/topstory/hot-lists | +| baidu_hot | 百度热搜 | top.baidu.com/board | +| toutiao_hot | 头条热榜 | toutiao.com/hot-event/hot-board | +| bilibili_hot | B站热门 | api.bilibili.com/x/web-interface/popular | +| douyin_hot | 抖音热点 | 第三方聚合接口 | +| 36kr_hot | 36氪热榜 | 36kr.com/api/search/list/info-flow/hot | +| github_trending | GitHub | api.github.com/search/repositories | +| hackernews | HackerNews | firebaseio.com (两步) | +| v2ex_hot | V2EX | v2ex.com/api/topics/hot.json | +| rsshub | RSSHub | 来源 url 即地址 | + +## Extractor Types (4) + +| parser | 场景 | parser_config 示例 | +|--------|------|---------| +| `builtin` | 内置平台 | `{"parser":"builtin","builtin_name":"weibo_hot"}` | +| `json_path` | REST API | `{"parser":"json_path","item_path":"$.data.list[*]","field_map":{...}}` | +| `css` | HTML | `{"parser":"css","item_selector":".hot-item","field_map":{...}}` | +| `regex` | 文本 | `{"parser":"regex","item_regex":"(?P