Install
openclaw skills install @lucky-dreamer/fetch-zhihu-contentUse when the user wants to download any Zhihu article/answer by URL — including '下载知乎文章', '抓取知乎回答', '帮我保存这篇知乎', '把这个知乎链接转成Markdown', or any request to extract content from a zhuanlan.zhihu.com or zhihu.com/question/.../answer URL. Accepts one or more Zhihu URLs and saves each as Markdown (with optional HTML). Uses Playwright to render pages and extract clean text content. Handles both zhuanlan.zhihu.com articles and zhihu.com answers.
openclaw skills install @lucky-dreamer/fetch-zhihu-content下载任意知乎文章或回答的完整正文,保存为 Markdown 文件。支持:
https://zhuanlan.zhihu.com/p/{id}https://www.zhihu.com/question/{qid}/answer/{aid} 或 https://www.zhihu.com/answer/{aid}https://www.zhihu.com/question/{qid}用户提供知乎 URL 或告诉你要下载哪篇文章。
python <skill_dir>/scripts/fetch_zhihu_content.py [--browser auto|chromium|firefox] <一个或多个知乎URL> [输出目录]
示例:
# 下载一篇(Windows 默认 Edge,Linux 默认 Firefox)
python scripts/fetch_zhihu_content.py https://zhuanlan.zhihu.com/p/123456
# 指定用 Firefox
python scripts/fetch_zhihu_content.py --browser firefox https://zhuanlan.zhihu.com/p/123456
# 下载多篇
python scripts/fetch_zhihu_content.py https://zhuanlan.zhihu.com/p/123456 https://www.zhihu.com/question/789/answer/456
# 指定输出目录
python scripts/fetch_zhihu_content.py https://zhuanlan.zhihu.com/p/123456 ./output
.RichText,依次降级尝试其他选择器).md 文件脚本输出到终端:
保存的文件:
zhihu_{类型}_{标题前40字}.md — 含元数据和完整正文的 Markdownpip install playwright
playwright install firefox # Linux(推荐)
playwright install msedge # Windows
playwright install chromium # 备选
--browser firefox / --browser chromium 参数