imdb-scraper

2.1.0 • Public • Published

IMDB Scraper npm

A simple Promise based IMDB scraper

Install

npm install imdb-scraper

Example

const IMDBScraper = require('imdb-scraper')
const Imdb = new IMDBScraper()

Imdb.title('tt3896198')
  .then(res => console.log(res))
  .catch(err => console.log(err))

Usage

Constructor Options

{
  // Request defaults to change headers, use proxies, etc..
  requestDefaults: {},
  // How many retries before request fails
  maxRetries: 3
}

Methods

title(tmdbId)

episodes(tmdbId, season = 1)

search(string || object)

Contributions

Contributions are welcome, make a PR.

Readme

Keywords

none

Package Sidebar

Install

npm i imdb-scraper

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

10.5 kB

Total Files

8

Last publish

Collaborators

  • netifriik