npm.io
1.3.1 • Published 2 months ago

youtube-transcript

Licence
MIT
Version
1.3.1
Deps
0
Size
43 kB
Vulns
0
Weekly
0
Stars
574

youtube-transcript

npm version

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.

Installation

$ npm i youtube-transcript

or

$ yarn add youtube-transcript

or

$ pnpm add youtube-transcript

Usage

import { fetchTranscript } from 'youtube-transcript';

fetchTranscript('videoId or URL').then(console.log);
Methods
  • fetchTranscript(videoId: string [,options: TranscriptConfig]): Promise<TranscriptResponse[]>;

License

MIT Licensed

Keywords