@myno_21/imdb-scraper
Version:
Get imdb information easily & quickly.
102 lines (79 loc) • 2.55 kB
Markdown
<p align="center">
<p align="center">
<h1 align="center">IMDB Scraper
<h5 align="center">Easy & Beginner friendly imdb-scraper made with ❤️ and typescript.
</p>
</p>
<p align="center">
<a href="https://github.com/TrishCX/Pinterest-Scraper" target="_blank">
<img src="http://forthebadge.com/images/badges/built-with-love.svg"/>
</a>
</p>
<p align="center">
<p align="center">
<a href="https://github.com/TrishCX/Frix" target="_blank">
<img src="https://img.shields.io/npm/v/@myno_21/imdb-scraper.svg" alt="Build Status">
</a>
<a href="https://github.com/TrishCX/Pinterest-Scraper" target="_blank">
<img src="https://img.shields.io/badge/License-Boost_1.0-lightblue.svg" alt="Codecov" />
</a>
<a href="https://github.com/TrishCX/Frix" target="_blank">
<img src="https://img.shields.io/badge/License-ISC-blue.svg" alt="License">
</a>
</p>
<p align="center">
<a href="https://www.npmjs.com/package/@myno_21/pinterest-scraper" target="_blank">
<img src="https://img.shields.io/npm/dt/@myno_21/imdb-scraper.svg" />
</a>
</p>
## 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
```console
$ npm install @myno_21/imdb-scraper
```
## Import
```typescript
import { Client } from "@myno_21/imdb-scraper";
```
## Example
```ts
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
```ts
{
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
- [Github](https://github.com/TrishCX)
- [Repository](https://github.com/TrishCX/Imdb-Scraper)
# License
ISC