imdb-node-scraper

1.0.5 • Public • Published

imdb-node-scraper

NPM

A node JS scraper for IMDB website for basic details

Install

$ npm i --save imdb-node-scraper

Example

Getting list of movies by title.

const imdb = require('imdb-node-scraper');

imdb.searchMovie('fury')    // give the JSON arrary of moive list
    .then((result)=>{
        console.log(result);
    })
    .catch((error)=>{
        console.log(errot);
});

//Output
[ 
      { image: 'https://m.media-amazon.com/images/M/MV5BMjA4MDU0NTUyN15BMl5BanBnXkFtZTgwMzQxMzY4MjE@._V1_UX32_CR0,0,32,44_AL_.jpg',
        title: 'Fury',
        imdbID: 'tt2713180' },
      { image: 'https://m.media-amazon.com/images/M/MV5BNWUwNzYxYWEtYzM4OS00MTg0LWIwZjktMzc3MWUyZTQ0MjMzXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_UX32_CR0,0,32,44_AL_.jpg',
        title: 'The Fury',
        mdbID: 'tt0077588' }
] 

Getting details of a paticular movie by imdbID.

const imdb = require('imdb-node-scraper');

imdb.getMovieDetails('tt2713180')     // give the JSON Object of movie details
    .then((result)=>{
            console.log(result);
        })
        .catch((error)=>{
            console.log(errot);
 });
    
//Output
{ title: 'Fury (2014)',
  year: '2014',
  rating: '7.6',
  votes: '387,919',
  time: '2h 14min',
  poster: 'https://m.media-amazon.com/images/M/MV5BMjA4MDU0NTUyN15BMl5BanBnXkFtZTgwMzQxMzY4MjE@._V1_UX182_CR0,0,182,268_AL__QL50.jpg',
  release: '31 October 2014 (India)',
  story: '1945, in World War II Germany, the tough Sergeant Don .........',
  writtenBy: 'Claudio Carvalho, Rio de Janeiro, Brazil' 
  }

License

[MIT License]

Used in https://torrentbazz.herokuapp.com

Readme

Keywords

Package Sidebar

Install

npm i imdb-node-scraper

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

7.04 kB

Total Files

5

Last publish

Collaborators

  • shreyansh3010