Skip to content

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

Open
harshitanand wants to merge 3 commits intoPanniantong:mainfrom
harshitanand:feat/issue-184-instagram-tiktok-channels
Open

feat(channels): add Instagram and TikTok support#258
harshitanand wants to merge 3 commits intoPanniantong:mainfrom
harshitanand:feat/issue-184-instagram-tiktok-channels

Conversation

@harshitanand
Copy link
Copy Markdown

@harshitanand harshitanand commented Apr 10, 2026

What

Adds InstagramChannel and TikTokChannel using yt-dlp as the backend, following the same pattern as the existing YouTubeChannel and BilibiliChannel.

Changes

  • agent_reach/channels/instagram.py — handles instagram.com and instagr.am URLs; tier-0 (yt-dlp already a dependency); supports public posts and Reels; notes cookie requirement for private content
  • agent_reach/channels/tiktok.py — handles tiktok.com and vm.tiktok.com URLs; tier-0; supports public video metadata and subtitle extraction
  • agent_reach/channels/__init__.py — registers both new channels in ALL_CHANNELS
  • tests/test_channels.py — adds TestInstagramChannel and TestTikTokChannel with can_handle(), check() (yt-dlp present/absent), and registry assertions

Testing

  • TestInstagramChannel — can_handle, check ok, check off, registry — PASSED
  • TestTikTokChannel — can_handle, check ok, check off, registry — PASSED
  • Follows existing channel contract (can_handle, check, name, description, backends, tier)

Related

Closes #184

Add InstagramChannel and TikTokChannel using yt-dlp as the backend,
consistent with the existing YouTube and Bilibili channel pattern.

- InstagramChannel: handles instagram.com and instagr.am URLs,
  tier-0 (yt-dlp already required), supports public posts and Reels
- TikTokChannel: handles tiktok.com and vm.tiktok.com URLs,
  tier-0, supports public video metadata and subtitles
- Both registered in ALL_CHANNELS in channels/__init__.py
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!

1 participant