Skip to content

feat(channels): add zhihu channel via opencli#496

Open
wesleysanjose wants to merge 2 commits into
Panniantong:mainfrom
wesleysanjose:feat/zhihu-channel
Open

feat(channels): add zhihu channel via opencli#496
wesleysanjose wants to merge 2 commits into
Panniantong:mainfrom
wesleysanjose:feat/zhihu-channel

Conversation

@wesleysanjose

Copy link
Copy Markdown

Summary

Adds Zhihu (知乎) as an OpenCLI-backed desktop channel — same pattern as
Facebook/Instagram (#447).

  • Add ZhihuChannel on the existing OpenCLISiteChannel helper (declaration-only, ~14 lines)
  • Register in doctor/channel registry (before the generic rss/exa/web fallbacks)
  • Route --channels=zhihu to the shared OpenCLI installer (dedupes with other OpenCLI channels)
  • Skip Zhihu in server installs (needs desktop Chrome)
  • Update README, English README, install docs, agent skills, social reference, and llms.txt; platform count 15 → 16

Validation

  • python -m pytest tests/ -q -> 198 passed (+7 new: can_handle URLs, registry membership, check ok-path, install routing/server-skip)
  • ruff check on new/touched files -> passed
  • Wheel build (python -m build) + duplicate-entry/data-file check mirroring CI's wheel-gate -> zhihu.py ships, 53 entries, no duplicates
  • agent-reach doctor --json -> zhihu ok, active backend OpenCLI
  • opencli zhihu hot -f yaml -> returned live 热榜 entries
  • opencli zhihu search "Agent Reach" -f yaml -> returned real search results, including a zhuanlan.zhihu.com article URL — confirmed can_handle() matches it too
  • opencli zhihu question <id> -f yaml -> question + answers (verified via search results)

Notes

  • All OpenCLI zhihu read commands are [cookie] — they need a logged-in
    zhihu.com session in Chrome (opencli zhihu login to establish one).
    Unlike Facebook/Instagram there is no anonymous read path documented.
  • Read surface: search / hot / question / answer-detail / user /
    user-answers / user-articles / pins / download (Markdown export) /
    collections. Write ops (answer/comment/like/follow) exist upstream but are
    out of scope — Agent Reach is read/search only.
  • zhuanlan.zhihu.com (专栏) is covered by suffix matching on zhihu.com.

🤖 Generated with Claude Code

Adds Zhihu (知乎) as an OpenCLI-backed desktop channel — same pattern as
Facebook/Instagram (Panniantong#447).

- Add ZhihuChannel on the existing OpenCLISiteChannel helper (declaration-only)
- Register in doctor/channel registry
- Route --channels=zhihu to the shared OpenCLI installer (dedupes with other
  OpenCLI channels)
- Skip Zhihu in server installs (needs desktop Chrome)
Update README, English README, install docs, agent skills, social
reference, and llms.txt; platform count 15 → 16.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant