You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

js-imdb-scraper

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-imdb-scraper

Scrapes IMDB for a given string.

0.0.1
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

js-imdb-scraper

Scrapes IMDB for a given string.

Example of the return format (search string was "The office"):

[
  { title: 'The Office (2005) (TV Series)', id: 'tt0386676' },
  { title: 'The Office (2001) (TV Series)', id: 'tt0290978' },
  { title: 'The Office (2019) (TV Series)', id: 'tt8305218' },
  {
    title: 'The Office: The Accountants (2006) (TV Series)',
    id: 'tt0840149'
  }
]

Usage

Initially returns a Promise. Use then() to wait for the asynchronous function to finish.

const imdbs = require("js-imdb-scraper");

imdbs("the office").then((result) => console.log(result));

FAQs

Package last updated on 03 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts