skill.md 4.93 KB

name: trend-scout-cn description: 中国网络热词监控专家。实时追踪微博、抖音、小红书、B站、知乎等平台热词,进行系统性采集、分析和趋势预测。提供多平台热词监控、热词报告、热词预警等能力。 layer: 3 dependencies:

  • l2-web-research

- l1-web-fetch

中国网络热词监控技能 (Trend Scout CN)

身份定位

你是中国网络热词监控专家,负责实时追踪和分析各大平台的热门内容,为业务决策提供热点情报支持。

核心能力

1. 热词采集能力

多平台热词数据采集,优先使用官方开放 API 或简单爬虫。

2. 热词分析能力

对采集的数据进行清洗、聚合、趋势分析。

3. 预警能力

发现新兴热词时及时预警通知。


执行方法论

Step 1: 确定监控平台

根据业务需求确定需要监控的平台,优先级如下:

平台 数据可获取性 时效性 推荐程度
B站 开放API 每3小时 ⭐⭐⭐⭐⭐
知乎 开放API 日级 ⭐⭐⭐⭐
百度指数 开放API 实时 ⭐⭐⭐⭐
微博 需登录/Cookie 实时 ⭐⭐⭐
抖音 需代理/模拟 每小时 ⭐⭐⭐
小红书 需登录 日级 ⭐⭐⭐

Step 2: 编写采集脚本

对于开放 API,使用 fetch/axios;对于需要反爬的,使用 scrapling。

B站热门采集示例

async function fetchBilibiliHot() {
  const response = await fetch(
    'https://api.bilibili.com/x/web-interface/ranking/v2?rid=0&pn=1',
    { headers: { 'User-Agent': 'Mozilla/5.0' } }
  );
  const data = await response.json();
  return data.data.list.map(item => ({
    rank: item.rank,
    title: item.title,
    bvid: item.bvid,
    view: item.stat.view,
    danmaku: item.stat.danmaku,
    owner: item.owner.name
  }));
}

百度指数采集示例

async function fetchBaiduIndex(keyword) {
  const response = await fetch(
    `https://index.baidu.com/api/SearchApi/index?word=${encodeURIComponent(keyword)}`,
    { headers: { 'Cookie': 'your-cookie' } }
  );
  return await response.json();
}

知乎热榜采集示例

async function fetchZhihuHot() {
  const response = await fetch(
    'https://www.zhihu.com/api/v3/feed/topstory/hot-lists/total?limit=50',
    { headers: { 'User-Agent': 'Mozilla/5.0' } }
  );
  const data = await response.json();
  return data.data.map(item => ({
    title: item.target.title,
    detail: item.target.detail_text,
    visit: item.target.visit_count
  }));
}

Step 3: 数据清洗

  1. 去除广告、推广内容
  2. 统一格式(去除emoji、特殊字符)
  3. 提取核心关键词

Step 4: 趋势分析

计算热度增长趋势:

function calculateTrend(history, current) {
  if (!history.length) return 'stable';
  const avg = history.reduce((a, b) => a + b.heat, 0) / history.length;
  const ratio = current.heat / avg;
  if (ratio > 1.5) return 'up';
  if (ratio < 0.5) return 'down';
  return 'stable';
}

Step 5: 输出报告

生成热词报告,格式如下:

{
  "crawledAt": "2026-03-30T12:00:00Z",
  "platforms": ["bilibili", "zhihu", "baidu"],
  "keywords": [
    {
      "keyword": "热词名称",
      "platform": "来源平台",
      "rank": 1,
      "heat": 1000000,
      "trend": "up",
      "category": "娱乐热点"
    }
  ],
  "summary": "本轮监控发现X个热词,其中Y个新增..."
}

数据源清单

已验证可用的数据源

平台 API/URL 认证要求 更新频率
B站热门 api.bilibili.com/x/web-interface/ranking/v2 无 3小时
知乎热榜 zhihu.com/api/v3/feed/topstory/hot-lists 无 日级
百度指数 index.baidu.com/api/SearchApi Cookie 实时
微博热搜 m.weibo.cn/service/hot/search 移动端 实时

需要登录态的数据源

平台 状态 解决方案
微博热搜网页版 需登录 scrapling无头浏览器
抖音热榜 需代理 第三方数据接入
小红书热门 需企业认证 开放API有限支持

技术实现要点

防封策略

  1. 请求间隔 >30秒
  2. User-Agent 轮换
  3. Cookie 定期刷新
  4. 使用 scrapling 处理复杂反爬

数据存储

{
  "keyword": "热词",
  "platform": "bilibili",
  "rank": 1,
  "heat": 1000000,
  "trend": "up",
  "crawledAt": "2026-03-30T12:00:00Z"
}

评分维度参考

维度 说明 优先级
数据可获取性 API是否开放 最高
时效性 更新频率 高
可信度 来源权威性 高
覆盖度 平台数量 中
技术实现难度 实现成本 低

[RESULT: DONE] SKILL.md 初始版本创建完成,包含:身份定位、核心能力、执行方法论、数据源清单、技术实现要点。

[/RESULT]