Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kakulukian/youtube-transcript
Fetch transcript from a youtube video
https://github.com/Kakulukian/youtube-transcript
Last synced: 7 days ago
JSON representation
Fetch transcript from a youtube video
- Host: GitHub
- URL: https://github.com/Kakulukian/youtube-transcript
- Owner: Kakulukian
- Created: 2020-09-26T14:54:41.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T00:08:34.000Z (4 months ago)
- Last Synced: 2024-11-05T04:51:44.592Z (7 days ago)
- Language: TypeScript
- Size: 17.6 KB
- Stars: 296
- Watchers: 3
- Forks: 62
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# youtube-transcript
[![npm version](https://badge.fury.io/js/youtube-transcript.svg)](https://badge.fury.io/js/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
```bash
$ npm i youtube-transcript
```or
```bash
$ yarn add youtube-transcript
```## Usage
```js
import { YoutubeTranscript } from 'youtube-transcript';YoutubeTranscript.fetchTranscript('videoId or URL').then(console.log);
```### Methods
- fetchTranscript(videoId: string [,options: TranscriptConfig]): Promise;
## License
**[MIT](LICENSE)** Licensed