@myno_21/imdb-scraper
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

IMDB Scraper

Easy & Beginner friendly imdb-scraper made with ❤️ and typescript.

Build Status Codecov License

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

Package Sidebar

Install

npm i @myno_21/imdb-scraper

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

17.8 kB

Total Files

44

Last publish

Collaborators

  • myno_21