45 lines
745 B
Markdown
45 lines
745 B
Markdown
# KB Zhihu Metadata Skill
|
|
|
|
**kb-zhihu-metadata** - Extract Zhihu question/answer/user metadata.
|
|
|
|
## Features
|
|
|
|
- Question metadata extraction
|
|
- Answer metadata extraction
|
|
- User information extraction
|
|
- JSON output format
|
|
- Markdown conversion support
|
|
|
|
## Commands
|
|
|
|
```bash
|
|
# Question metadata
|
|
python zhihu_metadata.py --id "266309957" --type question
|
|
|
|
# Answer metadata
|
|
python zhihu_metadata.py --id "2003427891925509507" --type answer
|
|
```
|
|
|
|
## Output
|
|
|
|
```json
|
|
{
|
|
"success": true,
|
|
"data": {
|
|
"platform": "zhihu",
|
|
"type": "question",
|
|
"id": "266309957",
|
|
"title": "问题标题",
|
|
"author": "作者名字",
|
|
"answer_count": 50,
|
|
"followers": 1000
|
|
}
|
|
}
|
|
```
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
cp -r kb-zhihu-metadata/ ~/skills/
|
|
```
|