class YoutubeLoaderA document loader for loading data from YouTube videos. It uses the youtubei.js library to fetch the transcript and video metadata.
Loads the transcript and video metadata from the specified YouTube video. It uses the youtubei.js library to fetch the video metadata and transcripts.
Creates a new instance of the YoutubeLoader class from a YouTube video URL.
const loader = new YoutubeLoader(
"https:
"en",
true,
);
const docs = await loader.load();