IMDB::JSON
Search IMDB for a specific title, process the result and extract the JSON script within. Process the JSON script and return a hash reference.
use IMDB::JSON; use Data::Dumper; my $IMDB = IMDB::JSON->new; print Dumper($IMDB->search("The Thing", 1982)); exit;
Create a new IMDB::JSON object, options can be passed to the object by specifying them
The base URL to start from. This is usually https://www.imdb.com
If true, returns only raw JSON text, it's not processed into an hash reference
Set the User-Agent you want to send with the request
If true, print debug messages to STDERR
Attempt to return IMDB data for the movie / show tilte published in year
Returns JSON results for imdb_id
Colin Faber <cfaber@fpsn.net>
Report all bugs on https://rt.cpan.org OR email me directly
IMDB::JSON is Copyright (C) 2018, by Colin Faber.
It is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
b) the "Perl Artistic License".
To install IMDB::JSON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IMDB::JSON
CPAN shell
perl -MCPAN -e shell install IMDB::JSON
For more information on module installation, please visit the detailed CPAN module installation guide.