imdb-score
v2.1.3
Published
This is a small tool to get IMDB socre
Downloads
1
Readme
IMDB SCORE
This is a small tool to get the IMDB score by IMDB ID.
Example
const IMDB = require('imdb-score')
const main = async () => {
// Default, Grab score from webpage
const scores = await IMDB.init("tt5491994").score()
// OMDB API, if fail, fall back to grab score from webpage
const scores = await IMDB.init("tt5491994").omdbKey("Your Key").score()
// Retry request for 5 times
// Default to 3 if you don't call retry method
const scores = await IMDB.init("tt5491994").retry(5).score()
}
main()