IMDB Scraper
❤️ and typescript.
Easy & Beginner friendly imdb-scraper made with
Why to use?
- Flexible
- Exceedingly fast
- Includes type definition
- Lightweight
Features
✅ │ Get information about a movie/tv-show✅ │ Get all the cast.✅ │ Get pictures about the movie/tv-show.✅ │ Search movie/tv-show✅ │ Get trailer of the movie/tv-show.
🔗 Prerequisites
- NodeJS 16 +
❔ Installation
$ npm install @myno_21/imdb-scraper
Import
import { Client } from "@myno_21/imdb-scraper";
Example
import { Client } from "@myno_21/imdb-scraper";
const client = new Client();
// Creating a new instance.
(async () => {
const movieId = "tt0816692";
const response = await client.getMovie(movieId);
console.log(response);
})(); // Anonymous arrow function.
Output
{
title: 'Interstellar',
imageURL: 'https://m.media-amazon.com/images/M/MV5BZjdkOTU3MDktN2IxOS00OGEyLWFmMjktY2FiMmZkNWIyODZiXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_.jpg',
description: "A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.",
releaseDate: '7th December, 2014',
runtime: '2h 49m',
imdbRating: 8.6,
popularity: '73',
genres: [ 'Adventure', 'Drama', 'Sci-Fi' ],
reviews: '5.3k'
}
🔗 Links
License
ISC