npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

imdb-scraper-js

v1.0.1

Published

A scraper to search movies and series from imdb website

Downloads

6

Readme

IMDB Scraper

A scraper for the IMDB website, to extract information of movies and tv series

Install

To install the project you can run the following command

npm install imdb-scraper-js

Usage

To get a unique tile by the imdb id

const { getMovie } = require('imdb-scraper')

getMovie('tt0096895')
    .then(response => console.log(response))

Output from getMovie

{
  title: 'Batman (1989)',
  originalTile: '',
  description: 'The Dark Knight of Gotham City begins his war on crime with his first major enemy being Jack Napier, a criminal who becomes the clownishly homicidal Joker.',
  rating: '7.5/10',
  year: '(1989)',
  poster: 'https://m.media-amazon.com/images/M/MV5BMTYwNjAyODIyMF5BMl5BanBnXkFtZTYwNDMwMDk2._V1_UX182_CR0,0,182,268_AL_.jpg',
  genres: [ 'Action', 'Adventure' ],
  imdbID: 'tt0096895'
}

To search all star wars movies

const { searchMovies } = require('imdb-scraper');

searchMovies('star wars episode')
    .then(response => console.log(response))

Example of output from search all star wars movies

{
  title: 'That movie is not Star wars. Episode VII. Last jedi (2017)',
  originalTile: '',
  description: "Darth Vader travels in Austria. He flues on plane. He goes on Vienna's tram. All movie viewer looks all that looks Vader. And this movie is not Star wars. Episode VII. Last Jedi.",
  rating: '6.4/10',
  year: '(2017)',
  poster: 'https://m.media-amazon.com/images/M/MV5BZTU4MTQ0MTMtZTk1YS00NDczLTgyMjUtNmUxNDBmNmIwMjA3XkEyXkFqcGdeQXVyNDcwNDE0Nzk@._V1_UX182_CR0,0,182,268_AL_.jpg',
  genres: [ 'Drama' ],
  imdbID: 'tt7810706'
},
{
  title: 'Star Wars, Episódio VI: O Retorno do Jedi (1983)',
  originalTile: 'Star Wars: Episode VI - Return of the Jedi',
  description: "After a daring mission to rescue Han Solo from Jabba the Hutt, the Rebels dispatch to Endor to destroy the second Death Star. Meanwhile, Luke struggles to help Darth Vader back from the dark side without falling into the Emperor's trap.",
  rating: '8.3/10',
  year: '(1983)',
  poster: 'https://m.media-amazon.com/images/M/MV5BOWZlMjFiYzgtMTUzNC00Y2IzLTk1NTMtZmNhMTczNTk0ODk1XkEyXkFqcGdeQXVyNTAyODkwOQ@@._V1_UX182_CR0,0,182,268_AL_.jpg',
  genres: [ 'Action', 'Adventure', 'Fantasy', 'Sci-Fi' ],
  imdbID: 'tt0086190'
}
...