Package Exports
- youtube-transcript
- youtube-transcript/dist/youtube-transcript.common.js
- youtube-transcript/dist/youtube-transcript.esm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (youtube-transcript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
youtube-transcript
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
Usage
import { YoutubeTranscript } from 'youtube-transcript';
YoutubeTranscript.fetchTranscript('videoId or URL').then(console.log);
Methods
- fetchTranscript(videoId: string [,options: TranscriptConfig]): Promise<TranscriptResponse[]>;
License
MIT Licensed