Skip to content

feat(channels): add Weibo, Zhihu, Douyin via OpenCLI backend#482

Open
sptwalker wants to merge 2 commits into
Panniantong:mainfrom
sptwalker:feat/cn-social-channels
Open

feat(channels): add Weibo, Zhihu, Douyin via OpenCLI backend#482
sptwalker wants to merge 2 commits into
Panniantong:mainfrom
sptwalker:feat/cn-social-channels

Conversation

@sptwalker

Copy link
Copy Markdown

These platforms are already served by the OpenCLI browser-session backend (reuses the user's logged-in Chrome), so each channel is a thin OpenCLISiteChannel subclass -- install, health-check, and route only. Registered in ALL_CHANNELS; all contract tests pass.

sptwalker and others added 2 commits July 5, 2026 22:52
These platforms are already served by the OpenCLI browser-session backend (reuses the user's logged-in Chrome), so each channel is a thin OpenCLISiteChannel subclass -- install, health-check, and route only. Registered in ALL_CHANNELS; all contract tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Douyin becomes multi-backend (OpenCLI -> yt-dlp), mirroring twitter.py/bilibili.py. OpenCLI stays the full backend (search/user-videos/hashtag via browser session); yt-dlp is a login-free fallback that pulls a single video + metadata by URL when no browser session is available. Two-stage probe: first ok wins, so a not-logged-in OpenCLI no longer blocks a working yt-dlp.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@moxxxskaifa moxxxskaifa left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

非常好!代码结构清晰:

  • 微博/知乎 各13行,继承 OpenCLISiteChannel 薄封装 ✅
  • 抖音 93行完整实现,双后端(OpenCLI+yt-dlp) + 健康检查 ✅
  • 3个平台都已注册到 ALL_CHANNELS ✅
  • 零删除行,纯新增功能,无回归风险 ✅

LGTM! 🚀 感谢贡献!

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.

2 participants