-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support yt hashtags #102
Comments
I could find only several ways to extract video hashtags:
❯ VIDEO_ID=kFRdoYfZYUY
❯ resp=$(curl \
'https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8' \
-s \
-X POST \
-H 'Content-Type: application/json' \
-d @- <<EOF
{
"videoId": "$VIDEO_ID",
"context": {
"client": {
"clientName": "IOS",
"clientVersion": "17.33.2"
}
}
}
EOF
)
❯ echo -E "$resp" | jq -r .videoDetails.keywords
[
"Hania Rani",
"Live from Studio S2",
"Piano",
"Live",
"Warsaw",
"Poland",
"Piano Day"
] But here there's pinch of magic. |
This is somewhat opposite to what we need if I understood the idea correctly. This snippet seems to retrieve tags for a given video, but what we are looking for something to get the list of video ids (in some form) for a given tag |
My bad. Now I understand the problem :) |
I don't think youtube provides rss for hashtags, but having such sources will be very useful. It can probably be extracted from hashtag page (looks like it embeds all the relevant data in
"responseContext
as a json)The text was updated successfully, but these errors were encountered: