FilmAffinity::UserRating - Perl interface to FilmAffinity
Version 1.01
Get filmaffinity voted movies from a user
use FilmAffinity::UserRating; my $parser = FilmAffinity::UserRating->new( userID => '123456' ); my $ref_movies = $parser->parse();
Via the command-line program filmaffinity-get-ratings.pl
FilmAffinity::UserRating is a Perl interface to FilmAffinity. You can use this module to retrieve your rated movies.
Object's constructor. You should pass as parameter the userID
my $parser = FilmAffinity::UserRating->new( userID => '123456' );
Set the minimum delay between requests to the server, in seconds.
my $parser = FilmAffinity::UserRating->new( userID => '123456', delay => 20, );
By default, the delay is 5 seconds
get userID
get username
get movies
This function parses all rating pages of filmaffinity from a user.
my $ref_movies = $parser->parse();
This function parses a page of filmaffinity that is available as a single string in memory.
$parser->parseString($content);
William Belle, <william.belle at gmail.com>
<william.belle at gmail.com>
Please report any bugs or feature requests to bug-filmaffinity-userrating at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=FilmAffinity-UserRating. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-filmaffinity-userrating at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc FilmAffinity::UserRating
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=FilmAffinity-UserRating
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/FilmAffinity-UserRating
CPAN Ratings
http://cpanratings.perl.org/d/FilmAffinity-UserRating
Search CPAN
http://search.cpan.org/dist/FilmAffinity-UserRating/
http://www.filmaffinity.com
Copyright 2013 William Belle.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install FilmAffinity::UserRating, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FilmAffinity::UserRating
CPAN shell
perl -MCPAN -e shell install FilmAffinity::UserRating
For more information on module installation, please visit the detailed CPAN module installation guide.