← 返回 Skills 市场
savior1987

知乎热榜 - UAPIPRO

作者 Chenfeng · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
97
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cs-uapipro-hot-zhihu
功能描述
抓取知乎热榜,使用 UAPIPRO API(https://uapis.cn)。当用户询问"知乎热榜"、"知乎热搜"、"知乎热门"时触发。 需要环境变量 UAPIPRO_API_KEY。
使用说明 (SKILL.md)

知乎热榜 - UAPIPRO API

通过 UAPIPRO API 获取知乎热榜数据。

快速使用

直接通过 exec 调用脚本:

# 获取完整热榜
python3 scripts/zhihu_hot.py

# 获取前10条
python3 scripts/zhihu_hot.py 10

# JSON格式输出
python3 scripts/zhihu_hot.py --json
python3 scripts/zhihu_hot.py 10 --json

API 信息

  • 接口: GET https://uapis.cn/api/v1/misc/hotboard?type=zhihu
  • 认证: Authorization: Bearer \x3CUAPIPRO_API_KEY>
  • 返回: 知乎热榜列表,每条包含 index、title、url、hot_value、extra(可选 desc/image/label)
  • 更新: 约几分钟一次

脚本用法

python3 zhihu_hot.py [N] [--json|-j]
  • N - 返回前N条(不传则返回全部,约50条)
  • --json - 以 JSON 格式输出(用于程序调用)

返回字段说明

字段 说明
index 排名序号
title 问题标题
url 问题链接
hot_value 热度值,如"634 万热度"
extra.desc 问题描述/摘要
extra.image 配图URL(相对路径)
extra.label 标签,如"新"

Python 调用示例

import subprocess
import json
import os

# 调用脚本获取JSON输出
result = subprocess.run(
    ["python3", "scripts/zhihu_hot.py", "10", "--json"],
    capture_output=True, text=True,
    env={**os.environ, "UAPIPRO_API_KEY": os.environ.get("UAPIPRO_API_KEY", "")}
)
data = json.loads(result.stdout)
for item in data["list"]:
    print(item["index"], item["title"])

老大输出格式偏好

标题:XXX(热度:XXX) 原文链接:XXX

每次回复知乎热榜时统一使用此格式。

安全使用建议
Before installing: (1) insist the skill's registry metadata be corrected to declare UAPIPRO_API_KEY as a required credential so the platform can surface that request to you; (2) only provide a minimal-scope UAPIPRO key you trust and do not reuse a high-privilege key; (3) review the included script (scripts/zhihu_hot.py) — it only calls uapis.cn and formats results, but verify you are comfortable with that endpoint; (4) if you need stronger isolation, run the script in a sandboxed environment; and (5) avoid installing if the publisher is unknown and you cannot get the metadata/ownership properly updated.
功能分析
Type: OpenClaw Skill Name: cs-uapipro-hot-zhihu Version: 1.0.0 The skill is a straightforward tool for fetching Zhihu hot search rankings using the UAPIPRO API (uapis.cn). The Python script `scripts/zhihu_hot.py` uses the standard `urllib` library to make authenticated GET requests and provides various output formats (text, JSON, Feishu). No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the use of the `UAPIPRO_API_KEY` is consistent with the tool's stated purpose.
能力评估
Purpose & Capability
The skill's name and description (fetch Zhihu hot list via UAPIPRO) match the included script and instructions: the script calls https://uapis.cn/api/v1/misc/hotboard?type=zhihu and formats the results. Requiring an API key (UAPIPRO_API_KEY) is logically necessary for this purpose. However, the registry metadata claims 'Required env vars: none' while both SKILL.md and scripts/zhihu_hot.py require UAPIPRO_API_KEY — this metadata omission is an inconsistency.
Instruction Scope
SKILL.md and the script limit actions to calling the UAPIPRO API, formatting output (text/json/Feishu), and printing results. The instructions and code do not read other files, system configs, or unrelated environment variables, nor do they send data to endpoints other than uapis.cn. The subprocess example passes only the UAPIPRO_API_KEY from the environment.
Install Mechanism
There is no install spec and no downloads; the skill is instruction-plus-a-local-script that uses Python standard library (urllib). No external packages are installed and nothing is written to disk beyond the included script.
Credentials
The script and SKILL.md require UAPIPRO_API_KEY (a secret) which is appropriate for the API integration, but the registry metadata does not declare this required env var or a primary credential. That mismatch can lead to the platform not prompting for the key, accidental failures, or users supplying credentials without realizing the skill needs them. The skill does not request other unrelated credentials, and there is no evidence of exfiltration beyond legitimate API calls to uapis.cn.
Persistence & Privilege
The skill does not request persistent/always-on presence, does not modify other skills or system-wide settings, and contains no code to persist credentials beyond reading the UAPIPRO_API_KEY from the environment at runtime.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cs-uapipro-hot-zhihu
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cs-uapipro-hot-zhihu 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug cs-uapipro-hot-zhihu
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

知乎热榜 - UAPIPRO 是什么?

抓取知乎热榜,使用 UAPIPRO API(https://uapis.cn)。当用户询问"知乎热榜"、"知乎热搜"、"知乎热门"时触发。 需要环境变量 UAPIPRO_API_KEY。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 97 次。

如何安装 知乎热榜 - UAPIPRO?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cs-uapipro-hot-zhihu」即可一键安装,无需额外配置。

知乎热榜 - UAPIPRO 是免费的吗?

是的,知乎热榜 - UAPIPRO 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

知乎热榜 - UAPIPRO 支持哪些平台?

知乎热榜 - UAPIPRO 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 知乎热榜 - UAPIPRO?

由 Chenfeng(@savior1987)开发并维护,当前版本 v1.0.0。

💬 留言讨论