.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "IMDB::Persons 3pm" .TH IMDB::Persons 3pm "2021-01-07" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" IMDB::Persons \- Perl extension for retrieving movies persons from IMDB.com .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use IMDB::Persons; \& \& # \& # Retrieve a person information by IMDB code \& # \& my $person = new IMDB::Persons(crit => \*(Aq0000129\*(Aq); \& \& or \& \& # \& # Retrieve a person information by name \& # \& my $person = new IMDB::Persons(crit => \*(AqTom Cruise\*(Aq); \& \& or \& \& # \& # Process already stored HTML page from IMDB \& # \& my $person = new IMDB::Persons(file => \*(Aqimdb.html\*(Aq); \& \& if($person\->status) { \& print "Name: ".$person\->name."\en"; \& print "Birth Date: ".$person\->date_of_birth."\en"; \& } else { \& print "Something wrong: ".$person\->error."!\en"; \& } .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" IMDB::Persons allows one to retrieve an information about \&\s-1IMDB\s0 persons (actors, actresses, directors etc): full name, photo, date and place of birth, mini bio and filmography. .SH "Object Private Methods" .IX Header "Object Private Methods" .IP "\fB_init()\fR" 4 .IX Item "_init()" Initialize a new object. .IP "\fB_search_person()\fR" 4 .IX Item "_search_person()" Implements a logic to search \s-1IMDB\s0 persons by their names. .SH "Object Public Methods" .IX Header "Object Public Methods" .IP "\fBname()\fR" 4 .IX Item "name()" Retrieve a person full name .Sp .Vb 1 \& my $person_name = $person\->name(); .Ve .IP "\fBmini_bio()\fR" 4 .IX Item "mini_bio()" Returns a mini bio for specified \s-1IMDB\s0 person .Sp .Vb 1 \& my $mini_bio = $person\->mini_bio(); .Ve .IP "\fBdate_of_birth()\fR" 4 .IX Item "date_of_birth()" Returns a date of birth of \s-1IMDB\s0 person in format 'day' 'month caption' 'year': .Sp .Vb 1 \& my $d_birth = $person\->date_of_birth(); .Ve .IP "\fBplace_of_birth()\fR" 4 .IX Item "place_of_birth()" Returns a name of place of the birth .Sp .Vb 1 \& my $place = $person\->place_of_birth(); .Ve .IP "\fBphoto()\fR" 4 .IX Item "photo()" Return a path to the person's photo .Sp .Vb 1 \& my $photo = $person\->photo(); .Ve .IP "\fBfilmography()\fR" 4 .IX Item "filmography()" Returns a person's filmography as a hash of arrays with following structure: .Sp .Vb 1 \& my $fg = $person\->filmography(); \& \& _\|_DATA_\|_ \& $fg = { \& \*(AqSection\*(Aq => [ \& { title => \*(Aqmovie title\*(Aq, \& role => \*(Aqperson role\*(Aq, \& year => \*(Aqyear of movie production\*(Aq, \& code => \*(AqIMDB code of movie\*(Aq, \& } \& ]; \& } .Ve .Sp The section can be In Development, Actor, Self, Thanks, Archive Footage, Producer etc. .IP "\fBgenres()\fR" 4 .IX Item "genres()" Retrieve a list of movie genres for specified person: .Sp .Vb 1 \& my $genres = $persons\->genres; .Ve .IP "\fBplot_keywords()\fR" 4 .IX Item "plot_keywords()" Retrieve a list of keywords for movies where specified person plays: .Sp .Vb 1 \& my $keywords = $persons\->plot_keywords; .Ve .SH "EXPORTS" .IX Header "EXPORTS" No Matches.=head1 \s-1BUGS\s0 .PP Please, send me any found bugs by email: stepanov.michael@gmail.com. .SH "SEE ALSO" .IX Header "SEE ALSO" IMDB::Film IMDB::BaseClass WWW::Yahoo::Movies HTML::TokeParser .SH "AUTHOR" .IX Header "AUTHOR" Mikhail Stepanov \s-1AKA\s0 nite_man (stepanov.michael@gmail.com) .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (c) 2004 \- 2007, Mikhail Stepanov. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.