feat(channels): add Weibo, Zhihu, Douyin via OpenCLI backend#482
Open
sptwalker wants to merge 2 commits into
Open
feat(channels): add Weibo, Zhihu, Douyin via OpenCLI backend#482sptwalker wants to merge 2 commits into
sptwalker wants to merge 2 commits into
Conversation
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
approved these changes
Jul 5, 2026
moxxxskaifa
left a comment
There was a problem hiding this comment.
非常好!代码结构清晰:
- 微博/知乎 各13行,继承 OpenCLISiteChannel 薄封装 ✅
- 抖音 93行完整实现,双后端(OpenCLI+yt-dlp) + 健康检查 ✅
- 3个平台都已注册到 ALL_CHANNELS ✅
- 零删除行,纯新增功能,无回归风险 ✅
LGTM! 🚀 感谢贡献!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.