Zhihu Keyword Content Search
CLAWHUB · Unverified
爬取知乎问题和回答。当用户要求爬取知乎、抓取知乎数据、搜索知乎问答,或提到"知乎"+"爬虫/爬取/抓取/搜索"时使用此技能。支持按关键词搜索问题、按回答数排序、抓取全部回答并保存为JSON和纯文本。 Skill: Zhihu Keyword Content Search Owner: taiyuexiao Summary: 爬取知乎问题和回答。当用户要求爬取知乎、抓取知乎数据、搜索知乎问答,或提到"知乎"+"爬虫/爬取/抓取/搜索"时使用此技能。支持按关键词搜索问题、按回答数排序、抓取全部回答并保存为JSON和纯文本。 Tags: crawler:1.0.0, data:1.0.0, latest:1.0.0, zhihu:1.0.0 Version history: v1.0.0 | 2026-04-01T13:45:22.926Z | auto Initial release of Zhihu Crawler skill. - Enables searching Zhihu questions by keywords and crawling all related answers. - Supports sorting
- 62
- Rank
- 84
- Safety
- 1.3k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 10, 2026
- Adoption signal
- 1.3K downloadsadoption · Oct 10, 2026
- Latest release
- 1.0.0release · Apr 1, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.0release
Initial release of Zhihu Crawler skill. - Enables searching Zhihu questions by keywords and crawling all related answers. - Supports sorting questions by answer count. - Saves results as JSON and plain text for easy analysis. - Provides simple command-line usage with user-supplied Cookie. - Handles common errors with troubleshooting guides.
Observed Apr 1, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17cvwxv7anx0vtcqm1x9q524x841jmb:zhihu-keyword-content-search- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-taiyuexiao-zhihu-keyword-content-search/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
6,515 characters of source documentation, loaded on request.
Extracted files
4 files captured from the source.
SKILL.md
---
name: zhihu-crawler
description: 爬取知乎问题和回答。当用户要求爬取知乎、抓取知乎数据、搜索知乎问答,或提到"知乎"+"爬虫/爬取/抓取/搜索"时使用此技能。支持按关键词搜索问题、按回答数排序、抓取全部回答并保存为JSON和纯文本。
---
# 知乎爬虫 Skill
## 环境要求
- Python 3.7+(`python` 或 `python3` 命令)
- 依赖:`pip install requests`
## 工作流程
1. **识别关键词**:从用户请求中提取要搜索的关键词
2. **获取 Cookie**:若用户未提供,告知获取方式(见下方)
3. **执行脚本**:运行 `zhihu_crawl.py`,监控进度
4. **汇报结果**:问题数、回答数、输出目录
## 获取 Cookie
> 浏览器打开 zhihu.com 登录 → F12 → Network → 任意请求 → Request Headers → 复制 `cookie:` 后的完整值
## 执行命令
```bash
python zhihu_crawl.py \
--cookie "用户的Cookie" \
--keywords "关键词1" "关键词2" \
--top 100 \
--output ./zhihu_output
```
**Windows PowerShell:**
```powershell
python zhihu_crawl.py `
--cookie "用户的Cookie" `
--keywords "关键词1" "关键词2" `
--top 100 `
--output ./zhihu_output
```
> Windows 上若提示 SSL 错误,在命令前加:
> `$env:PATH = "C:\python\anaconda\Library\bin;" + $env:PATH`
## 参数
| 参数 | 必填 | 默认值 | 说明 |
|------|------|--------|------|
| `--cookie` | 是 | — | 知乎登录 Cookie |
| `--keywords` | 否 | MyGO Ave Mujica 丰川祥子 | 搜索词,多个用空格分隔,含空格的词用引号 |
| `--top` | 否 | 100 | 取回答数最多的前 N 个问题 |
| `--output` | 否 | zhihu_output | 输出目录路径 |
| `--search-max` | 否 | 200 | 每个关键词最多搜索多少候选 |
## 输出文件
```
output/
├── question_{id}.json # 每道题的完整数据(含全部回答)
├── _question_list.json # 问题列表(按回答数降序)
└── _merged_all.txt # 所有内容合并纯文本(可直接喂给 AI 分析)
```
## 常见错误
| 错误 | 原因 | 解决 |
|------|------|------|
| `SSL module not available` | Anaconda PATH 未配置 | 设置 `$env:PATH = "C:\python\anaconda\Library\bin;" + $env:PATH` |
| `ModuleNotFoundError: requests` | 未安装依赖 | `pip install requests` 或 `pip install --user requests` |
| `HTTP 403` | Cookie 失效 | 重新从浏览器复制 Cookie |
| 找到 0 个问题 | Cookie 失效或关键词无结果 | 检查 Cookie 是否完整有效 |
## 使用示例
**抓取单主题:**
```bash
python zhihu_crawl.py --cookie "abc..." --keywords "高松灯" --top 50 --output ./output_灯
```
**抓取多主题,取 TOP 200:**
```bash
python zhihu_crawl.py --cookie "abc..." --keywords "MyGO" "Ave Mujica" "丰川祥子" --top 200
```README.md
# 知乎问答爬虫
按关键词搜索知乎问题,自动抓取高回答数的问题及其全部回答,保存为 JSON 和纯文本。
## 快速开始
```bash
# 安装依赖
pip install requests
# 运行(将 Cookie 替换为你自己的)
python zhihu_crawl.py --cookie "你的知乎Cookie" --keywords "丰川祥子" --top 100
```
## 如何获取 Cookie
1. 浏览器打开 [zhihu.com](https://www.zhihu.com) 并登录
2. 按 `F12` → **Network(网络)** 标签
3. 点击任意知乎页面请求 → **Request Headers**
4. 找到 `cookie:` 那行,复制冒号后的全部内容
## 参数说明
| 参数 | 必填 | 默认值 | 说明 |
|------|------|--------|------|
| `--cookie` | ✅ | — | 知乎登录 Cookie |
| `--keywords` | — | MyGO Ave Mujica 丰川祥子 | 搜索关键词,多个用空格分隔 |
| `--top` | — | 100 | 取回答数最多的前 N 个问题 |
| `--output` | — | zhihu_output | 输出目录 |
| `--search-max` | — | 200 | 每个关键词最多搜索多少候选 |
## 输出
```
zhihu_output/
├── question_{id}.json # 每题完整数据(含全部回答)
├── _question_list.json # 问题列表(按回答数排序)
└── _merged_all.txt # 所有内容合并纯文本
```
## 示例
```bash
# 单关键词
python zhihu_crawl.py --cookie "abc..." --keywords "高松灯" --top 50
# 多关键词,自定义输出目录
python zhihu_crawl.py --cookie "abc..." \
--keywords "MyGO" "Ave Mujica" "丰川祥子" \
--top 200 \
--output ./mygo_data
# Windows PowerShell(若有 SSL 报错先加这行)
$env:PATH = "C:\python\anaconda\Library\bin;" + $env:PATH
python zhihu_crawl.py --cookie "abc..." --keywords "丰川祥子" --top 100
```
## 工作原理
1. 对每个关键词调用知乎搜索 API,收集候选问题
2. 跨关键词去重,按回答数降序排列,取前 N 名
3. 对每个问题分页抓取全部回答
4. 保存 JSON + 合并纯文本
## 注意事项
- Cookie 有时效性,失效(HTTP 403)时需重新复制
- 抓取间隔已设置礼貌延迟(2s/题),请勿并发运行多个实例
- 仅供个人学习研究使用_meta.json
{
"ownerId": "kn78gp9e492ecmhxzdz6ksnb0h841q3e",
"slug": "zhihu-keyword-content-search",
"version": "1.0.0",
"publishedAt": 1775051122926
}skill-card.md
## Description: Searches Zhihu questions by keyword, ranks matching questions by answer count, and crawls answers into JSON and plain text files. This skill is ready for commercial/non-commercial use. ## Publisher: [taiyuexiao](https://clawhub.ai/user/taiyuexiao) ### License/Terms of Use: MIT-0 ## Use Case: Agents use this skill when a user asks to search, crawl, or analyze Zhihu Q&A content for selected keywords. It is suited to workflows where the user can provide an active Zhihu session cookie and review the saved local data. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill asks users to pass a full logged-in Zhihu browser cookie on the command line. Mitigation: Run it in a dedicated environment, avoid shared terminals and logs, clear shell history after use, and revoke or refresh the Zhihu session afterward. Risk: The skill stores scraped answer data locally as JSON and merged plain text. Mitigation: Choose an appropriate local output directory, limit access to generated files, and review retained data before sharing or reuse. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/taiyuexiao/skills/zhihu-keyword-content-search) - [Zhihu](https://www.zhihu.com) - [Zhihu question search API](https://www.zhihu.com/api/v4/search_v3) ## Skill Output: **Output Type(s):** [Shell commands, Configuration, Files, Text, JSON, Guidance] **Output Format:** [Markdown guidance with shell commands; generated JSON files and merged plain text files] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires a user-supplied Zhihu login cookie and writes results to a local output directory.] ## Skill Version(s): 1.0.0 (source: server release metadata) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-taiyuexiao-zhihu-keyword-content-search. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about Zhihu Keyword Content Search. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-taiyuexiao-zhihu-keyword-content-search, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/taiyuexiao/skills/zhihu-keyword-content-search",
"sourceUrl": "https://clawhub.ai/taiyuexiao/skills/zhihu-keyword-content-search",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T21:28:10.688Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-taiyuexiao-zhihu-keyword-content-search/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-taiyuexiao-zhihu-keyword-content-search/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T21:28:10.688Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.3K downloads",
"href": "https://clawhub.ai/taiyuexiao/zhihu-keyword-content-search",
"sourceUrl": "https://clawhub.ai/taiyuexiao/zhihu-keyword-content-search",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T21:28:10.688Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/taiyuexiao/zhihu-keyword-content-search",
"sourceUrl": "https://clawhub.ai/taiyuexiao/zhihu-keyword-content-search",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-01T13:45:22.926Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-taiyuexiao-zhihu-keyword-content-search/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-taiyuexiao-zhihu-keyword-content-search/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "Initial release of Zhihu Crawler skill. - Enables searching Zhihu questions by keywords and crawling all related answers. - Supports sorting questions by answer count. - Saves results as JSON and plain text for easy analysis. - Provides simple command-line usage with user-supplied Cookie. - Handles common errors with troubleshooting guides.",
"href": "https://clawhub.ai/taiyuexiao/zhihu-keyword-content-search",
"sourceUrl": "https://clawhub.ai/taiyuexiao/zhihu-keyword-content-search",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-01T13:45:22.926Z",
"isPublic": true
}
]
}Record generated Nov 25, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-taiyuexiao-zhihu-keyword-content-search/run-check
