# imdb-scraper

> Scrape data from IMDB.

Latest version **2.1.0** (published 2021-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install imdb-scraper
pnpm add imdb-scraper
yarn add imdb-scraper
bun add imdb-scraper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2021-09-19 |
| First published | 2018-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 4 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kristjan Kirpu |
| Maintainers | netifriik |

## Links

- npm: https://www.npmjs.com/package/imdb-scraper
- Repository: https://github.com/pepzwee/node-imdb-scraper
- Homepage: https://github.com/pepzwee/node-imdb-scraper#readme
- Issues: https://github.com/pepzwee/node-imdb-scraper/issues
- npm.io page: https://npm.io/package/imdb-scraper

## Dependencies (4)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.3
- [request](https://npm.io/package/request.md) ^2.88.2
- [querystring](https://npm.io/package/querystring.md) ^0.2.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.5

## Recent versions

- 2.1.0 (latest) — 2021-09-19
- 2.0.2 — 2020-06-03
- 2.0.1 — 2020-05-29
- 2.0.0 — 2020-05-29
- 1.0.1 — 2018-01-30
- 1.0.0 — 2018-01-29

## README

# IMDB Scraper [![npm](https://img.shields.io/npm/v/imdb-scraper.svg?maxAge=3600)](https://www.npmjs.com/package/imdb-scraper)

> A simple Promise based IMDB scraper

### Install

```console
npm install imdb-scraper
```

### Example

```js
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

```js
{
  // 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.

---
_Source: https://npm.io/package/imdb-scraper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
