1.0.1 • Published 5 years ago
puzzle-english-srt v1.0.1
puzzle-english-srt
Installing
npm i puzzle-english-srt
or npm i -g puzzle-english-srt
Usage
This command will download srt file for movie: puzzle-english-srt -u -p or node index.js - is name of movie from url
Usage as library
getPuzzleEnglishSrt(url, credentials, callback)
var getPuzzleEnglishSrt = require("puzzle-english-srt");
getPuzzleEnglishSrt("https://puzzle-movies.com/films/hotel-transylvania-3-summer-vacation-2018", {email:"username", password: "password"}, function(strText) {
console.log(srtText);
});
Examples
node index.js https://puzzle-movies.com/films/a-dogs-purpose-2017
node index.js https://puzzle-movies.com/films/a-dogs-purpose-2017 [dogs-purpose]