← Back to Skills Marketplace
97
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cs-uapipro-hot-zhihu
Description
抓取知乎热榜,使用 UAPIPRO API(https://uapis.cn)。当用户询问"知乎热榜"、"知乎热搜"、"知乎热门"时触发。 需要环境变量 UAPIPRO_API_KEY。
README (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
每次回复知乎热榜时统一使用此格式。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cs-uapipro-hot-zhihu - After installation, invoke the skill by name or use
/cs-uapipro-hot-zhihu - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Frequently Asked Questions
What is 知乎热榜 - UAPIPRO?
抓取知乎热榜,使用 UAPIPRO API(https://uapis.cn)。当用户询问"知乎热榜"、"知乎热搜"、"知乎热门"时触发。 需要环境变量 UAPIPRO_API_KEY。 It is an AI Agent Skill for Claude Code / OpenClaw, with 97 downloads so far.
How do I install 知乎热榜 - UAPIPRO?
Run "/install cs-uapipro-hot-zhihu" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 知乎热榜 - UAPIPRO free?
Yes, 知乎热榜 - UAPIPRO is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 知乎热榜 - UAPIPRO support?
知乎热榜 - UAPIPRO is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 知乎热榜 - UAPIPRO?
It is built and maintained by Chenfeng (@savior1987); the current version is v1.0.0.
More Skills