1.1.1 • Published 4 years ago

youtube-captions-scraper-x v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

About

Fetch original or fallback to auto-generated Youtube captions.\ Based on the original youtube-captions-scraper, I made a little change to make it supports not only user-submitted but also the original captions.

Installation

npm i youtube-captions-scraper-x

Usage

const { getSubtitles } = require('youtube-captions-scraper-x');

(async function() {
  const captions = await getSubtitles({ videoID: 'mw5VIEIvuMI', lang: 'ja' })
  
  // do something with captions
  console.log(captions)
})();

Captions will be an array of object of this format:

{
  "start": Number,
  "duration": Number,
  "text": String
}
1.1.1

4 years ago

1.1.0

4 years ago