I wanted to extract a transcript from a youtube video but there was only a python script so I created this to do it in node. This package use unofficial YTB API so it can be broken over the time if no update appears.
$ npm i youtube-transcriptor
$ yarn add youtube-transcriptor
$ pnpm add youtube-transcriptimport { fetchTranscript } from 'youtube-transcript';
fetchTranscript('videoId or URL').then(console.log);- fetchTranscript(videoId: string [,options: TranscriptConfig]): Promise<TranscriptResponse[]>;
MIT Licensed