imdb-webscraper
v1.0.2
Published
This package help user to get movie data from imdb website.
Readme
imdb-webscraper
{ status: "success" | "error" , data:Object | null , error: null | string }
Exception handeling
If package encounters any error, it will return error details and data field will be null. You can use status or error fields to find out if any error has been occurred.
Invoke
const { getMovieByImdbId, getMovieByTitle } = require("imdb-webscraper");
const getMovies = async () => {
//get movie by imdbId
console.log(await getMovieByImdbId("tt5950044"));
//get movie data with title
console.log(await getMovieByTitle("Superman (2025)"));
};
getMovies();
Support
I you have any issue just let us know. If this package needs any update, our team will do it.
