News for hackers. Stuff that matters.
Re:Search on imdb and get movie info in Node.js by rinchik1 on Friday December 23, 2016 @01:48PM (#13246476)
I haven't checked the code, but if you are actually searching and parsing IMDB.com then you are violating IMDB's user agreements. There are certain titles that are not available for you to use. However.. IMDB allows you to download and use most of it's contents: http://www.imdb.com/interfaces

Instead of downloading and parsing available data and reinventing the wheel, I would also recommend using 3rd party free APIs like http://www.omdbapi.com/

Just a thought...

Re:Search on imdb and get movie info in Node.js by burntsushi on Friday December 23, 2016 @03:06PM (#13246922)
> Instead of downloading and parsing available data

This is what goim does: https://github.com/BurntSushi/goim

There are maybe one or two other tools that can do this, but they are insufficient for $reasons or were too slow for my taste. There is a brief comparison toward the bottom of goim's README.

I update goim in a cronjob every Saturday morning (new IMDb data is updated weekly on Friday, IIRC). It's been humming along without incident for a few years now. :-)

Re:Search on imdb and get movie info in Node.js by JamesSwift on Friday December 23, 2016 @01:59PM (#13246539)
I've used and enjoyed themoviedb in the past.

https://www.themoviedb.org/documentation/api

Re:Search on imdb and get movie info in Node.js by MojtabaNV on Friday December 23, 2016 @03:57PM (#13247197)
It's a wrapper on omdb module, but in this `imdb-search` module developer can use es6 promises to search and get result. Result list of search have an id field as index, if we pass any of id to get method we can get all info about movie.(No need to use imdb specific long id on get movie)
Re:Search on imdb and get movie info in Node.js by Gys on Friday December 23, 2016 @02:04PM (#13246584)
It correctly states to be a wrapper for this omdb package: https://www.npmjs.com/package/omdb Which in turn uses the omdb API.
Re:Search on imdb and get movie info in Node.js by wesd on Friday December 23, 2016 @02:00PM (#13246547)
It's using OMDB.js:

const omdb = require('omdb');

Re:Search on imdb and get movie info in Node.js by rinchik1 on Friday December 23, 2016 @02:03PM (#13246568)
Ah okay! And ugh... boring. And HN title is misleading.