The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

PACKAGE

IMDB::JSON

DESCRIPTION

Search IMDB for a specific title, process the result and extract the JSON script within. Process the JSON script and return a hash reference.

SYNOPSIS

 use IMDB::JSON;
 use Data::Dumper;

 my $IMDB = IMDB::JSON->new;

 print Dumper($IMDB->search("The Thing", 1982));

 exit;

METHODS

new(opt => value);

Create a new IMDB::JSON object, options can be passed to the object by specifying them

OPTIONS

base_url

The base URL to start from. This is usually https://www.imdb.com

raw_json

If true, returns only raw JSON text, it's not processed into an hash reference

user_agent

Set the User-Agent you want to send with the request

debug

If true, print debug messages to STDERR

search(tilte, year)

Attempt to return IMDB data for the movie / show tilte published in year

byid(imdb_id)

Returns JSON results for imdb_id

AUTHOR

Colin Faber <cfaber@fpsn.net>

BUGS

Report all bugs on https://rt.cpan.org OR email me directly

COPYRIGHT

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".