weibo-realtime-search

Weibo post search tool. Calls the Redfox API to search Weibo posts based on user-entered keywords, with support for filtering by search category (comprehensive/hot/realtime) and verification type. Used to search Weibo content or find popular Weibo posts. Example triggers: Weibo search, search Weibo, Weibo hot, Weibo post, Weibo account search.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "weibo-realtime-search" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c6a167294f48554ce4ac85e0a3425bfa2068f16070accbc8982efafeb69619cb. Verify the upstream source and version against https://skillhub.cn/skills/redfox-data/weibo-realtime-search before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Weibo post search tool. Calls the Redfox API to search Weibo posts based on user-entered keywords, with support for filtering by search category (comprehensive/hot/realtime) and verification type. Used to search Weibo content or find popular Weibo posts. Example triggers: Weibo search, search Weibo, Weibo hot, Weibo post, Weibo account search.

0 Downloads

Introduction source: third_party · redfox-data · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: weibo-realtime-search
description: 微博作品搜索工具。根据用户输入的关键词调用 Redfox 接口搜索微博博文,支持按搜索类别(综合排序/热门排序/实时排序)和认证类型筛选。当用户需要搜索微博内容、查找微博热门博文时使用。触发词:微博搜索、搜微博、微博热门、微博博文、微博账号搜索。

微博作品搜索

📝 简介

微博作品搜索工具,根据关键词调用 Redfox 接口搜索微博博文,支持按搜索类别和认证类型筛选。

✨ 功能特性

功能模块 能力描述 核心价值
关键词搜索 关键词搜索微博博文 精准发现目标赛道的内容
搜索类别 支持综合排序/热门排序/实时排序三种类别 按不同维度发现优质内容
认证筛选 支持普通用户/个人认证/机构认证过滤 精准筛选优质博主
智能拓展 无结果时自动生成 10 个扩展词 突破搜索瓶颈发现相关内容
分页浏览 支持多页结果浏览 逐页探索大量搜索结果
订阅推送 支持关键词每日推送 定时获取最新搜索结果

🔑 鉴权

获取 API Key

请前往 红狐hub 获取 API KEY

配置 API Key

方案1: 以 Qoder 为例,将 REDFOX_API_KEY 添加到 ~/.openclaw/openclaw.json 中:

{ "env": { "REDFOX_API_KEY": "ak_xxxx..." } }

方案2: 终端配置

export REDFOX_API_KEY="ak_xxxx..."

🔄 工作流程

Step 1:理解用户意图,提取关键词和筛选参数

⚠️ 核心规则:语义理解优先,优先提取细分方向词,而非泛化大类词

1. 提取关键词

  • 从用户描述中提取 2~6 字的细分关键词
  • 若用户意图模糊(如"帮我搜微博"),主动询问:「请问你想搜索哪个方向或领域的内容?」
  • 不得在用户未提供关键词时擅自猜测并调用脚本

2. 识别筛选参数(用户未指定时使用默认值)

  • 搜索类别(--search-type):默认 1(综合)
    • 用户提到"热门"、"爆款"、"火"、"热搜" → 60(热门排序)
    • 用户提到"最新"、"实时"、"现在" → 61(实时排序)
    • 未提及搜索类别 → 1(综合排序,默认)
  • 页码(--page):默认 1
    • 用户提到"下一页"、"第2页" → 对应页码
    • 用户提到"上一页" → 当前页 - 1
    • 未提及页码 → 1(默认)
  • 认证类别(--ext-param):默认不传
    • 用户提到"机构认证"、"蓝V" → 3
    • 用户提到"个人认证"、"黄V" → 2
    • 用户提到"普通用户"、"个人" → 0
    • 未提及认证类别 → 不传(不过滤)

Step 2:调用搜索脚本

python3 ~/.agents/skills/weibo-search/scripts/search_weibo.py "<关键词>" [--search-type 搜索类别] [--page 页码] [--ext-param 认证类别]

参数说明:

参数 可选值 含义
keyword 任意字符串 搜索关键词
--search-type 1 / 60 / 61 综合排序 / 热门排序 / 实时排序(默认1)
--page 正整数 页码,从1开始(默认1)
--ext-param 0 / 2 / 3 认证类别:0-普通用户 2-个人认证 3-机构认证(默认不传)

脚本以 JSON 格式输出:

字段 说明
articles 关键词匹配博文列表
search_type_label 本次搜索类别文字说明
ext_param_label 本次认证类别文字说明
page 当前页码
has_next 是否有下一页(true/false)

每条博文字段:

字段 说明
title 博文内容(取自API text 字段)
author 博主名称
like_count 点赞数
comment_count 评论数
share_count 转发数(取自API forwardNum 字段)
work_url 博文链接
publish_time 发布时间
follower_count 粉丝数

Step 3:判断结果并展示

情况 A:articles 数量 > 0(有匹配结果)

A1. 告知用户查询范围

📊 关键词「XXX」查询到 N 条博文(搜索类别:{search_type_label} | 认证:{ext_param_label} | 第 {page} 页),以下是详细数据:

A2. 渲染 Markdown 表格(全部展示)

| #   | 博文内容           | 博主   | 点赞数 | 评论数 | 转发数 |
| --- | ------------------ | ------ | ------ | ------ | ------ |
| 1   | [博文内容](链接)   | 博主名 | 305.2w | 7.1w   | 51.0w  |

数字格式化规则:

  • < 10000:原始数字(如 320)
  • ≥ 10000:x.xw 格式(如 1.2w)

标题规则: [博文内容](work_url);超过 30 字截断并加 ...;标题为空时显示 -

A3. 搜索类别与认证筛选提示(紧接在表格之后,每次必须输出)

🔧 支持以下搜索类别,回复对应指令即可切换:

  • 综合排序 — 综合搜索博文
  • 热门排序 — 搜索热门博文
  • 实时排序 — 搜索最新发布的博文

📌 当前:{search_type_label}

🔧 支持以下认证筛选,回复对应指令即可过滤:

  • 不过滤 — 不限制认证类型
  • 普通用户 — 仅搜索普通用户
  • 个人认证 — 仅搜索个人认证(黄V)
  • 机构认证 — 仅搜索机构认证(蓝V)

📌 当前:{ext_param_label}

示例:「按热门、个人认证重新搜索」

A4. 翻页提示(⚠️ 紧接在 A3 之后,不可省略,每次必须输出)

  • 若 has_next 为 true:

    📄 当前第 {page} 页。回复「下一页」继续查看。

  • 若 has_next 为 false(当前页不足 9 条或为空,已是最后一页):

    �� 当前第 {page} 页,已无更多数据。

⚠️ A1~A4 缺一不可,必须在同一轮输出中连续完成。输出 A4 后紧跟 Step 4 订阅提示。若缺少 A4,视为执行错误,必须重新补充输出。

情况 B:articles 数量 = 0(无匹配结果)

B1. 抱歉提示 + 拓词推荐

😔 抱歉,未找到与「XXX」直接相关的内容,你可以尝试用更短或更宽泛的关键词重试(扩展词1,扩展词2,...扩展词10)

AI 必须生成固定 10 个扩展词,2~6 字,英文逗号分隔,不得少于 10 个。

B2. 搜索类别与认证筛选提示(紧接在 B1 之后,每次必须输出,格式同 A3)

⚠️ B1~B2 必须在同一轮输出中连续完成,输出 B2 后紧跟 Step 4 订阅提示,不得中断。

Step 4:提示订阅

全部内容展示完毕后,不等待、立刻结束输出,仅在末尾附上订阅提示:

📩 是否订阅「XXX」的每日推送?订阅后每天 09:00 自动推送最新博文。回复「确认订阅」即可创建定时任务。

Step 5:创建定时任务(用户回复「确认订阅」时执行)

优先使用平台内置定时任务能力,若无则提供通用方案:

平台内置定时任务(优先):

  • 任务名称:微博搜索订阅 - <关键词>
  • 执行频率:每天 09:00(cron:0 10 * * *)
  • 执行内容:运行脚本并将结果按 Step 3~4 格式展示推送到当前对话

通用配置方案:

# Linux/macOS crontab
0 10 * * * python3 ~/.agents/skills/weibo-search/scripts/search_weibo.py "<关键词>"

创建成功后告知用户:"已成功订阅关键词「<关键词>」的微博博文推送,每天 09:00 将自动查询最新数据并通知你。"

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供微博内容搜索的实用功能,满足用户查找微博博文的需求
  • 支持多种搜索类别和认证筛选,提升搜索精准度
  • 具备智能拓词和订阅推送等增值功能
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包含微博搜索、搜微博、微博热门等核心场景
  • 触发边界清晰,不易与其他技能混淆
Structure and Standards90/100

Areas to improve

  • 缺少When to Use/示例章节 Reported severity: Minor

    文档结构完整但缺少明确的使用示例章节

    Recommendation: 建议增加具体的使用示例章节,展示典型使用场景

Highlights

  • 文档结构完整,包含简介、功能特性、鉴权、工作流程等必要部分
  • 步骤划分清晰,参数说明详细,便于用户理解和使用
Execution Reliability80/100

Areas to improve

  • 网络异常处理未明确说明 Reported severity: Minor

    未明确说明API调用失败等网络异常的处理方式

    Recommendation: 建议补充网络异常、API限流等情况的处理机制和用户提示

Highlights

  • 工具来源明确,使用Redfox接口进行搜索
  • 参数设计合理,支持多种筛选条件
  • 具备完善的无结果处理机制(智能拓词推荐)
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • redfox.hk

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.