1.0.0 • Published 4 years ago

youtube-caption-scraper v1.0.0

Weekly downloads
9
License
ISC
Repository
github
Last release
4 years ago

A small zero-dependency* captions obtainer for YouTube


* Zero-dependency in the browser, node version uses node-fetch

Installation

npm i -S youtube-caption-scraper

Usage

const Scraper = require('youtube-caption-scraper');
const scraper = new Scraper();
scraper.scrap('https://youtu.be/jNQXAC9IVRw', 'en', 'vtt');

API

Scraper~scrap

ParamTypeDefaultDesciption
videoStringstringundefinedThe video ID or the video URL
languageCodestring'en'The language code of the captions
formatstring'vtt'The captions format
1.0.0

4 years ago