Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 790 Bytes

README.md

File metadata and controls

44 lines (36 loc) · 790 Bytes

IMDB Reviews Scraper

Installation

npm install imdb-reviews-scrapper

Usage

const imdbReviews = require('imdb-reviews-scrapper')

// All properties are optional
const options = {
  sort: 'helpfulnessScore', // helpfulnessScore | submissionDate | totalVotes | reviewVolume | userRating
  ratingFilter: '0', // 0 (Show all) | 1...10
  spoilers: '',      // hide | null
  paginationKey: ''  // IMDB uses a key to get the next page. You will find that with the response
}

imdbReviews(<IMDB_id>, options).then(reviews => {
  console.log(reviews)
})

Response

{ 
  data: [
     { 
       title: '',
       body: '',
       rating: '10/10',
       author: '',
       date: '16 March 2019',
       spoilers: true 
     }
  ],
  nextPageKey: ''
}