You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that I had to append = to make base64 not output base64: invalid input hence protocFailed to parse input..
From my tests to get a random comment (denoted by an index) of a given video, 182626000 seems to be the value to change to force the wanted random comment index. While I know that protobuf is ambiguous I would really love to get a meaningful description of what stands behind this 182626000 to force the value that I want. Do you have any idea how to proceed?
My goal is to avoid a linear complexity in the number of comments of the video. For instance for a video with 100,000 comments I randomly generate 42,327 but would like to get the 42,327th comment without having to go through 424 pages of 100 results.
The text was updated successfully, but these errors were encountered:
This would be super cool to have, (truly) random comments would definitely be interesting data to have. I'll take a look in the next few days here, but I admittedly have not messed around with Innertube/Protobuf in a while, so we'll see if I get can anywhere.
BTW, I'm happy you are using this repo for your project, even if you do seem to be the only one haha.
Let me know if you found anything since you opened this issue, I know I'm a week late now 🙃
No worries about being late, I have not made any progress and do not plan to do any concerning this very specific question due to priorities. The current heavy workaround that I have found consists in retrieving all comments of the given video and then sample randomly the one I am interested in.
I quite deeply investigated trying to do so but still do not achieve to do so. Let me explain my question below:
When considering the
nextPageToken
provided by YouTube Data API v3 CommentThreads: list endpoint (note that YouTube UI comments retrieval seems to rely on a YouTube Data API v3 superset page token) for video idtnTPaLOaHz8
withmaxResults=96
I get:gives:
Hence:
results in:
Note that I had to append
=
to makebase64
not outputbase64: invalid input
henceprotoc
Failed to parse input.
.From my tests to get a random comment (denoted by an index) of a given video,
182626000
seems to be the value to change to force the wanted random comment index. While I know that protobuf is ambiguous I would really love to get a meaningful description of what stands behind this182626000
to force the value that I want. Do you have any idea how to proceed?My goal is to avoid a linear complexity in the number of comments of the video. For instance for a video with 100,000 comments I randomly generate 42,327 but would like to get the 42,327th comment without having to go through 424 pages of 100 results.
The text was updated successfully, but these errors were encountered: