← 返回 Skills 市场
156
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bili-user-info
功能描述
查询B站用户的粉丝数、关注数和用户名;当用户需要查询B站UP主信息、分析B站账号数据或获取B站用户基本信息时使用
使用说明 (SKILL.md)
B站用户信息查询
任务目标
- 本 Skill 用于:查询B站用户的基本信息
- 能力包含:获取粉丝数量、关注数量、用户名
- 触发条件:用户询问B站UP主信息、需要分析B站账号数据、查询特定用户的粉丝/关注数
前置准备
- 依赖说明:scripts脚本所需的依赖包
requests>=2.25.0
操作步骤
标准流程
-
获取用户ID
- 向用户询问需要查询的B站用户ID(vmid)
- 如果用户不知道vmid,参考 references/api_guide.md 中的"如何获取vmid"章节
-
执行查询
- 调用
scripts/bili_query.py脚本查询用户信息 - 命令格式:
python scripts/bili_query.py --vmid \x3C用户ID> - 脚本会返回JSON格式的查询结果
- 调用
-
结果展示
- 解析脚本返回的JSON数据
- 以友好的方式向用户展示查询结果
- 如需深入分析,可结合数据进行解读
可选分支
-
查询特定信息:使用
--info参数指定查询类型python scripts/bili_query.py --vmid \x3C用户ID> --info fans(仅查询粉丝数)python scripts/bili_query.py --vmid \x3C用户ID> --info follows(仅查询关注数)python scripts/bili_query.py --vmid \x3C用户ID> --info name(仅查询用户名)
-
批量查询:参考 references/api_guide.md 中的批量查询方法
资源索引
- 查询脚本:见 scripts/bili_query.py(用途:调用B站API获取用户信息;参数:--vmid用户ID,--info信息类型)
- API参考:见 references/api_guide.md(何时读取:需要了解API详情、错误码、批量查询方法时)
注意事项
- API限制:B站API有调用频率限制,避免短时间内大量请求
- 网络要求:需要稳定的网络连接
- 数据时效:粉丝数和关注数为实时数据,用户名可能存在延迟
- 合法使用:仅用于学习和合法的数据分析目的,遵守B站用户协议
使用示例
示例1:查询指定用户信息
# 查询用户ID为8047632的完整信息
python scripts/bili_query.py --vmid 8047632
示例2:仅查询粉丝数
python scripts/bili_query.py --vmid 8047632 --info fans
示例3:智能体辅助查询
用户:"帮我查一下B站UP主老番茄的粉丝数" 智能体:
- 先查询"老番茄"的vmid(可通过B站搜索或询问用户)
- 调用脚本查询粉丝数
- 向用户展示结果并进行解读
安全使用建议
This skill appears coherent and low-risk: it runs a bundled Python script that queries public Bilibili APIs (no credentials required). Before using, ensure you have the requests package installed and review the included script if you want to confirm behavior. Avoid high-frequency bulk queries (the docs already warn about rate limits) to prevent being throttled or blocked by Bilibili. If you plan to allow autonomous agent invocation, remember the agent will be able to call the script and make outbound HTTP requests to api.bilibili.com/m.bilibili.com — which is expected for this skill but worth noting.
功能分析
Type: OpenClaw Skill
Name: bili-user-info
Version: 1.0.0
The skill bundle is a legitimate tool for querying Bilibili user statistics (fans, follows, and username) using public APIs. The Python script `scripts/bili_query.py` performs standard HTTP GET requests to `api.bilibili.com` and handles data appropriately without any signs of exfiltration, credential theft, or malicious execution. The instructions in `SKILL.md` and the documentation in `references/api_guide.md` are consistent with the tool's stated purpose and do not contain harmful prompt injection or unauthorized commands.
能力评估
Purpose & Capability
Name/description (query B站用户粉丝/关注/用户名) align with the included script and docs. The script calls Bilibili public APIs to fetch follower/following/name and SKILL.md lists only requests needed for that purpose (requests library).
Instruction Scope
SKILL.md instructs the agent to ask for a vmid, run the bundled script, and display returned JSON. It does not instruct reading unrelated files, accessing secrets, or sending data to endpoints other than Bilibili APIs. Batch examples note rate-limiting and use local script invocation.
Install Mechanism
There is no install spec (instruction-only). The only runtime dependency declared is requests, which the script imports — proportionate and expected. No external download or archive extraction is used.
Credentials
The skill requires no environment variables, credentials, or config paths. It only performs outbound HTTP requests to public Bilibili endpoints, so requested privileges are minimal and appropriate.
Persistence & Privilege
always is false and the skill does not modify other skills or system settings. It runs as an on-demand helper that executes a local script; no elevated persistence is requested.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bili-user-info - 安装完成后,直接呼叫该 Skill 的名称或使用
/bili-user-info触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
bili-user-info 1.0.0
- Initial release for B站用户信息查询。
- 支持通过B站用户ID(vmid)查询用户粉丝数、关注数和用户名。
- 提供标准和可选查询流程,包括批量查询和定向信息查询。
- 脚本命令行接口:支持 --vmid 及 --info 参数。
- 附带操作步骤、依赖说明、注意事项与用例示例。
元数据
常见问题
bili-user-info 是什么?
查询B站用户的粉丝数、关注数和用户名;当用户需要查询B站UP主信息、分析B站账号数据或获取B站用户基本信息时使用. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 156 次。
如何安装 bili-user-info?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bili-user-info」即可一键安装,无需额外配置。
bili-user-info 是免费的吗?
是的,bili-user-info 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
bili-user-info 支持哪些平台?
bili-user-info 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 bili-user-info?
由 末心(@moxin1044)开发并维护,当前版本 v1.0.0。
推荐 Skills