'Extract YouTube Channel Community Feed Data
I am trying to collect the community feed data from a channel for analytics. I couldn't find a way using the YouTube Data API v3. Is there a way to extract such data?
The data I would like to extract is in the community feed. For instance,it's a community feed from Dr. Bharatendra Rai Channel. I would like to collect all his feed.
Solution 1:[1]
As YouTube Data API v3 doesn't provide this basic feature, I would recommend you to try on your own to get the data your are looking for:
By requesting the HTML of the Community tab of the YouTube channel interesting you:
curl https://www.youtube.com/channel/CHANNEL_ID/community
Get the CONTINUATION_TOKEN
from the JSON of ytInitialData
:
/contents/twoColumnBrowseResultsRenderer/tabs/3/tabRenderer/content/sectionListRenderer/contents/0/itemSectionRenderer/contents/10/continuationItemRenderer/continuationEndpoint/continuationCommand/token
Then request the continuation JSON (don't forget to replace CONTINUATION_TOKEN
with the one obtained previously):
curl 'https://www.youtube.com/youtubei/v1/browse?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8' -H 'Content-Type: application/json' --data-raw '{"context":{"client":{"clientName":"WEB","clientVersion":"2.9999099"}},"continuation":"CONTINUATION_TOKEN"}'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Benjamin Loison |