feat(channels): add Instagram and TikTok support#204
Open
heloanc wants to merge 1 commit intoPanniantong:mainfrom
Open
feat(channels): add Instagram and TikTok support#204heloanc wants to merge 1 commit intoPanniantong:mainfrom
heloanc wants to merge 1 commit intoPanniantong:mainfrom
Conversation
Add Instagram and TikTok as new platforms with URL recognition, API connectivity checks, and token configuration guidance. Closes Panniantong#184 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Panniantong
requested changes
Mar 31, 2026
Owner
Panniantong
left a comment
There was a problem hiding this comment.
感谢贡献!在合并之前,这个 channel 需要满足项目的 channel 契约(见 CLAUDE.md):每个 channel 必须实现 can_handle()、read()、search()、check() 四个方法。
当前问题:
-
缺少 read() 和 search() 方法:没有这两个方法,channel 注册进系统后无法完成任何实际功能,doctor 会显示该平台「已支持」但实际无法使用,会误导用户。
-
缺少测试:请为新 channel 添加 tests/test_.py,参考现有的 tests/test_channels.py。
-
check() 的可达性探测与声称的后端 API 不对应:仅探测网站首页是否可达,不等于验证 API/Token 是否有效。
建议路径:
- 如果该平台有成熟的上游工具或 MCP 服务,请通过 mcporter 接入,read()/search() 调用 mcporter call;
- 如果需要原生 API 调用,请说明具体使用哪个 SDK 或 API 端点;
- 如果该平台的 API 申请限制较多(如 Instagram/TikTok),请在 PR 描述中说明当前方案的可行性。
修复以上问题后欢迎重新提交!
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.
Summary
Add Instagram and TikTok as new channel platforms.
Changes
instagram.py: Instagram channel with URL recognition (instagram.com,instagr.am), API connectivity check, andINSTAGRAM_TOKENconfigurationtiktok.py: TikTok channel with URL recognition (tiktok.com,vm.tiktok.com), API connectivity check, andTIKTOK_TOKENconfiguration__init__.py: Register both new channelsUsage
Set environment variables to enable:
Closes #184