3 ms·
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
by rinchik1 10y 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 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/ http://www.omdbapi.com/
Just a thought...
- JamesSwift 10y agoI've used and enjoyed themoviedb in the past. https://www.themoviedb.org/documentation/api https://www.themoviedb.org/documentation/api
- wesd 10y agoIt's using OMDB.js: const omdb = require('omdb');
- rinchik1 10y agoAh okay! And ugh... boring. And HN title is misleading.
- deleted 10y ago[deleted]
- Gys 10y agoIt correctly states to be a wrapper for this omdb package: https://www.npmjs.com/package/omdb https://www.npmjs.com/package/omdb Which in turn uses the omdb API.
- burntsushi 10y ago> Instead of downloading and parsing available data This is what goim does: https://github.com/BurntSushi/goim 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. :-)
- MojtabaNV 10y agoIt'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)