WebService::OMDB - Interface to http://www.omdbapi.com/
version 1.140440
my $search_results = WebService::OMDB::search('The Geen Mile'); # returns... [ { 'Year' => '1999', 'Type' => 'movie', 'imdbID' => 'tt0120689', 'Title' => 'The Green Mile' }, { 'Year' => '1999', 'Type' => 'movie', 'imdbID' => 'tt0338255', 'Title' => 'The Miracle of \'The Green Mile\'' }, { 'Year' => '2006', 'Type' => 'movie', 'imdbID' => 'tt0960803', 'Title' => 'Miracles and Mystery: Creating \'The Green Mile\'' }, { 'Year' => '2009', 'Type' => 'episode', 'imdbID' => 'tt1903167', 'Title' => 'The Green Mile' } ]; my $id_result = WebService::OMDB::id('tt0120689'); # returns... { 'Director' => 'Frank Darabont', 'imdbID' => 'tt0120689', 'Poster' => '...', 'Actors' => 'Tom Hanks, David Morse, Michael Clarke Duncan, Bonnie Hunt', 'Metascore' => '61', 'imdbRating' => '8.5', 'imdbVotes' => '477,025', 'Released' => '10 Dec 1999', 'Awards' => 'Nominated for 4 Oscars. Another 15 wins & 23 nominations.', 'Title' => 'The Green Mile', 'Plot' => 'The lives of guards on Death Row are affected by one of their charges: a black man accused of child murder and rape, yet who has a mysterious gift.', 'Year' => '1999', 'Rated' => 'R', 'Writer' => 'Stephen King (novel), Frank Darabont (screenplay)', 'Type' => 'movie', 'Runtime' => '189 min', 'Genre' => 'Crime, Drama, Fantasy', 'Language' => 'English, French', 'Response' => 'True', 'Country' => 'USA' }; my $title_result = WebService::OMDB::title('The Green Mile'); # returns the same as id
WebService::OMDB is an interface to http://www.omdbapi.com/.
Searches based on the title. Returns an array of results.
String. Required.
The options shown at http://www.omdbapi.com/. Hash reference. Optional.
Gets a result based on the IMDB id. Returns a single result.
Gets a result based on the title. Returns a single result.
Andrew Jones <andrew@arjones.co.uk>
This software is copyright (c) 2014 by Andrew Jones.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::OMDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::OMDB
CPAN shell
perl -MCPAN -e shell install WebService::OMDB
For more information on module installation, please visit the detailed CPAN module installation guide.