youtube-transcript
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.121,027latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.121,027
1.1.070
1.0.62,012
1.0.558
1.0.436
1.0.31
1.0.11
1.0.00

Package Sidebar

Install

npm i youtube-transcript

Weekly Downloads

19,153

Version

1.2.1

License

MIT

Unpacked Size

18.3 kB

Total Files

5

Last publish

Collaborators

  • kakulukian