Skip to content

Request specific continuation #385

Closed Answered by LuanRT
Michal-Szczepaniak asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, got it! Thanks for clarifying.

Please correct me if I'm wrong here:

  • You need the continuation tokens so you can retrieve them later.
  • You want to request that continuation without having to make multiple requests.

I think you should be able to do that with the Actions#execute method. Here's a small example for comments:

import { Innertube, UniversalCache, YTNodes } from 'youtubei.js';

(async () => {
  const yt = await Innertube.create({ cache: new UniversalCache(false), generate_session_locally: true });

  const search = await yt.search('Mac Miller right');
  const comments = await yt.getComments(search.videos[0].id);

  // Get the continuation node from the first response. This co…

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Michal-Szczepaniak
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@LuanRT
Comment options

@Michal-Szczepaniak
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants