feat(channels): add Instagram and TikTok support#258
Open
harshitanand wants to merge 3 commits intoPanniantong:mainfrom
Open
feat(channels): add Instagram and TikTok support#258harshitanand wants to merge 3 commits intoPanniantong:mainfrom
harshitanand wants to merge 3 commits intoPanniantong:mainfrom
Conversation
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
…ONTRIBUTING compliance)
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.
What
Adds
InstagramChannelandTikTokChannelusingyt-dlpas the backend, following the same pattern as the existingYouTubeChannelandBilibiliChannel.Changes
agent_reach/channels/instagram.py— handlesinstagram.comandinstagr.amURLs; tier-0 (yt-dlp already a dependency); supports public posts and Reels; notes cookie requirement for private contentagent_reach/channels/tiktok.py— handlestiktok.comandvm.tiktok.comURLs; tier-0; supports public video metadata and subtitle extractionagent_reach/channels/__init__.py— registers both new channels inALL_CHANNELStests/test_channels.py— addsTestInstagramChannelandTestTikTokChannelwithcan_handle(),check()(yt-dlp present/absent), and registry assertionsTesting
TestInstagramChannel— can_handle, check ok, check off, registry — PASSEDTestTikTokChannel— can_handle, check ok, check off, registry — PASSEDcan_handle,check,name,description,backends,tier)Related
Closes #184