zhihu-fetcher

Fetch Zhihu collections and articles into Markdown with local images and Obsidian export.

26|5|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/handsomestWei/zhihu-fetch-skill --skill zhihu-fetcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: zhihu-fetcher
Source: https://github.com/handsomestWei/zhihu-fetch-skill/tree/main
Command: npx skills add https://github.com/handsomestWei/zhihu-fetch-skill --skill zhihu-fetcher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, beautifulsoup4, playwright, and includes scripts (resource) components.

What problem does it solve?

This Skill automates collecting Zhihu 收藏夹 and fetching article content, converting it into Markdown with local image storage, and optionally exporting to Obsidian for organized knowledge management.

Core Features & Use Cases

  • 收藏夹列表: API-first retrieval of collection items with a robust fallback to DOM parsing to ensure complete lists.
  • 批量抓取与本地化图片: Batch fetch of articles, convert to Markdown, download images to a local images/ directory, and support progress resume.
  • Cookie 保活与会话持久化: Persist browser cookies and keep sessions alive, with manual re-login when required.
  • Obsidian 集成与智能分类: Write extracted content into Obsidian Vault and auto-classify under知乎收藏.
  • Use Case: A researcher archives hundreds of Zhihu posts into a well-structured Obsidian vault for topic analysis and backlinking.

Quick Start

Fetch a Zhihu collection and export all articles as Markdown with locally saved images, ready for Obsidian.

Frequently Asked Questions about zhihu-fetcher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I archive Zhihu collections to Markdown for Obsidian?

Batch fetching Zhihu articles handles interruptions by saving progress, allowing you to resume the workflow from the last successfully downloaded article instead of restarting the entire collection download.

Can I batch fetch Zhihu articles and resume the download if it stops?

Batch fetching Zhihu articles handles interruptions by saving progress, allowing you to resume the workflow from the last successfully downloaded article instead of restarting the entire collection download.

Do I need to keep logging in to scrape Zhihu collections?

Extracted Zhihu articles are written directly into your Obsidian Vault and automatically classified under the 知乎收藏 category, organizing downloaded Markdown files for structured knowledge management.

How does the Zhihu fetcher handle article classification in Obsidian?

Extracted Zhihu articles are written directly into your Obsidian Vault and automatically classified under the 知乎收藏 category, organizing downloaded Markdown files for structured knowledge management.

What's the best way to download images locally when scraping Zhihu posts?

If the API-first collection listing fails, the fetcher falls back to DOM parsing to ensure complete item retrieval, guaranteeing all articles in the Zhihu collection are successfully scraped.

Why does the Zhihu collection fetcher fall back to DOM parsing?

If the API-first collection listing fails, the fetcher falls back to DOM parsing to ensure complete item retrieval, guaranteeing all articles in the Zhihu collection are successfully scraped.