Show HN: I made a CLI to retrieve info from the IMDB
github.com
github.com
Back in the early 90s it was first this huge text file distributed via usenet and ftp. I remember contributing a few points of a trivia about T2: Judgement Day, one being the mirror of Arnold's "Get out." line to the trucker in Terminator to Robert Patrick delivering the same to the helicopter pilot in T2.
Later on, after the volume of data was becoming unwieldy for a flat text file, it was converted to a MS-DOS based database system. You'd download a ton of archive files, unpack them, then run a binary that would allow you to query things like title, year, actor. One of the best features from those days (and maybe the very early web-based IMDB) was you could say, "show me actors that were common to these 2 movies" (or maybe it was "given these 2 actors, show me movies they both starred in" -- or maybe both).
I sorely miss those days of a community-driven IMDB. I was truly saddened when it "sold out" and became a more-or-less commercial portal.
Unfortunately, the data has a restrictive license. Though, I'm not sure if that entirely holds, as I believe there are limitations (at least in the United States) to having copyright on compilations of factual data.
The main thing missing night be the ability to identify movies uniquely by imbd id... Something that can be very nice while searching.
Keep in mind OmdbApi states that it uses all other resources except IMDB to compile its data, so you may not find some movies/information only found in IMDB.
Regardless, thank you open sourcing your work.
How's omdbapi.com avoiding a C&D as well?
Similar to how "Scroogle.org" stayed away from violating Google's trademark.
- Embrace PEP8 (http://www.python.org/dev/peps/pep-0008/). It'll help other developers work with your code.
- argparse.ArgumentParser has a parse_args method, so you don't have to mess around with sys.argv
What I had learned was that full text search on IMDb is of very poor quality and returns all sorts of crap; I ended up searching on Google to get the imdbId, and return to IMDb with that Id to get movie data.
mv terminalIMDB.py ~/bin/imdb
chmod +x ~/bin/imdbEDIT: Just realised you aren't actually screen scraping IMDB but using OMDB API (http://www.omdbapi.com) instead, I'll have to check that out.
On CPAN there is WebService::IMDB module which uses this mobile API. Also there is IMBDB::File but (i believe) this works by web scraping IMDb website.
cpan links:
IMDB itself don't provide a (free) API and webscraping is explicitly forbidden in their TOS[3], so don't start building a service around that;)
[1] http://imdbpy.sourceforge.net/ [2] http://www.imdb.com/interfaces [3] http://www.imdb.com/help/show_article?conditions
(edit: forgot a link)
I made it because I found a simple webapp at one point that did this, but forgot to bookmark it and never found it again.
> how do you distinguish yourself from tmdb
This is a command-line program for accessing movie information (via someone else's web API), not movie database system. Asking how he/she distinguishes his/herself from TheMovieDB, is... a little odd. It would be like asking XBMC how they distinguish themselves from IMDB. > i barely even understood your response to be honest
- IMDB & TMDB are collections of movie data.- XBMC (aka XBox Media Center) is a piece of software that plays videos and will grab information about those videos from IMDB or TMDB to display to the user (e.g. when you're watching a movie, it will show you a synopsis of the movie, boxart, etc grabbed from the web).
- This post is just about a program that will allow you to say "I want information about a movie called A Christmas Story " and it will fetch that information from the web, and display it. The only real benefit of this, is being able to do the query/view the response from a text terminal, instead of just going to the website.
Anyways looking forward to use this tool!