Hacker News new | ask | show | jobs
by rinchik1 3463 days ago
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...

5 comments

> 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. :-)

I've used and enjoyed themoviedb in the past.

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

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)
It correctly states to be a wrapper for this omdb package: https://www.npmjs.com/package/omdb Which in turn uses the omdb API.
It's using OMDB.js:

const omdb = require('omdb');

Ah okay! And ugh... boring. And HN title is misleading.