imdb-trivia
v1.1.0
Published
A NodeJS library for fetching IMDb movie trivia
Downloads
1
Readme
imdb-trivia
Get IMDb's movie trivia
Since IMDb has no API for this we're forced to scrape the movie's trivia page.
Install
$ npm install --save imdb-trivia
Usage
const imdbTrivia = require('imdb-trivia');
imdbTrivia('tt0137523', function (err, movie) {
if (err) {
return console.log(err);
}
console.log(movie);
/*
{
title: 'Fight Club (1999)',
trivia_count: 161,
trivia: [...]
}
*/
});
License
MIT © Gabriel Montalvo