| 1 | #!/usr/bin/perl |
| 2 | use v5.14; |
| 3 | use warnings; |
| 4 | |
| 5 | use App::IMDBtop; |
| 6 | |
| 7 | App::IMDBtop->run; |
| 8 | |
| 9 | __END__ |
| 10 | |
| 11 | =encoding utf-8 |
| 12 | |
| 13 | =head1 NAME |
| 14 | |
| 15 | imdbtop - list actors that are popular in your movie collection |
| 16 | |
| 17 | =head1 SYNOPSIS |
| 18 | |
| 19 | # List all actors in the given movies, sorted by number of (given) |
| 20 | # movies they starred in |
| 21 | imdbtop < list_of_movie_ids |
| 22 | |
| 23 | # As above, but only lists top 20 actors |
| 24 | imdbtop -n 20 < list_of_movie_ids |
| 25 | |
| 26 | # As above, but only lists actors that appeared in at least 5 of the |
| 27 | # given movies |
| 28 | imdbtop -m 5 a_list_of_movie_ids another_list |
| 29 | |
| 30 | =head1 DESCRIPTION |
| 31 | |
| 32 | This script solves a simple problem: you have a list of movies you've |
| 33 | watched (in the form of IMDB IDs), and you are looking for the actors |
| 34 | that have starred most often in these movies. |
| 35 | |
| 36 | =head1 OPTIONS |
| 37 | |
| 38 | =over |
| 39 | |
| 40 | =item B<-n> I<count>, B<--nr> I<count> |
| 41 | |
| 42 | Only print the top I<count> actors. |
| 43 | |
| 44 | =item B<-m> I<min>, B<--min-count> I<min> |
| 45 | |
| 46 | Do not print actors that appear in less than I<min> of the given |
| 47 | movies. |
| 48 | |
| 49 | =item B<-c>, B<--cache>, B<--no-cache> |
| 50 | |
| 51 | If B<--cache>, stores the content of retrieved pages in a cache. |
| 52 | Defaults to B<--no-cache>. |
| 53 | |
| 54 | =item B<--cache-root> F<path> |
| 55 | |
| 56 | Location where cached pages are stored. Defaults to F</tmp>. |
| 57 | |
| 58 | =back |
| 59 | |
| 60 | =head1 SEE ALSO |
| 61 | |
| 62 | L<http://imdb.com> |
| 63 | |
| 64 | =head1 AUTHOR |
| 65 | |
| 66 | Marius Gavrilescu, E<lt>marius@ieval.roE<gt> |
| 67 | |
| 68 | =head1 COPYRIGHT AND LICENSE |
| 69 | |
| 70 | Copyright (C) 2016 by Marius Gavrilescu |
| 71 | |
| 72 | This library is free software; you can redistribute it and/or modify |
| 73 | it under the same terms as Perl itself, either Perl version 5.24.0 or, |
| 74 | at your option, any later version of Perl 5 you may have available. |
| 75 | b |
| 76 | |
| 77 | =cut |