Skip to content

feat(channels): add Instagram and TikTok support#204

Open
heloanc wants to merge 1 commit intoPanniantong:mainfrom
heloanc:feat/instagram-tiktok-channels
Open

feat(channels): add Instagram and TikTok support#204
heloanc wants to merge 1 commit intoPanniantong:mainfrom
heloanc:feat/instagram-tiktok-channels

Conversation

@heloanc
Copy link
Copy Markdown

@heloanc heloanc commented Mar 25, 2026

Summary

Add Instagram and TikTok as new channel platforms.

Changes

  • instagram.py: Instagram channel with URL recognition (instagram.com, instagr.am), API connectivity check, and INSTAGRAM_TOKEN configuration
  • tiktok.py: TikTok channel with URL recognition (tiktok.com, vm.tiktok.com), API connectivity check, and TIKTOK_TOKEN configuration
  • __init__.py: Register both new channels

Usage

Set environment variables to enable:

export INSTAGRAM_TOKEN=your_access_token
export TIKTOK_TOKEN=your_access_token

Closes #184

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]>
Copy link
Copy Markdown
Owner

@Panniantong Panniantong left a comment

Choose a reason for hiding this comment

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

感谢贡献!在合并之前,这个 channel 需要满足项目的 channel 契约(见 CLAUDE.md):每个 channel 必须实现 can_handle()、read()、search()、check() 四个方法。

当前问题:

  1. 缺少 read() 和 search() 方法:没有这两个方法,channel 注册进系统后无法完成任何实际功能,doctor 会显示该平台「已支持」但实际无法使用,会误导用户。

  2. 缺少测试:请为新 channel 添加 tests/test_.py,参考现有的 tests/test_channels.py。

  3. check() 的可达性探测与声称的后端 API 不对应:仅探测网站首页是否可达,不等于验证 API/Token 是否有效。

建议路径:

  • 如果该平台有成熟的上游工具或 MCP 服务,请通过 mcporter 接入,read()/search() 调用 mcporter call;
  • 如果需要原生 API 调用,请说明具体使用哪个 SDK 或 API 端点;
  • 如果该平台的 API 申请限制较多(如 Instagram/TikTok),请在 PR 描述中说明当前方案的可行性。

修复以上问题后欢迎重新提交!

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.

希望支持 Instagram 和 TikTok!

2 participants