NAME
FilmAffinity::UserRating - Perl interface to FilmAffinity
VERSION
Version 1.00
SYNOPSIS
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
DESCRIPTION
Overview
FilmAffinity::UserRating is a Perl interface to FilmAffinity. You can use this module to retrieve your rated movies.
Constructor
- new()
-
Object's constructor. You should pass as parameter the userID
my $parser = FilmAffinity::UserRating->new( userID => '123456' );
Options
- delay
-
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
ACCESSORS
$parser->userID
get userID
$parser->username
get username
$parser->movies
get movies
SUBROUTINES/METHODS
$parser->parse()
This function parses all rating pages of filmaffinity from a user.
my $ref_movies = $parser->parse();
$parser->parseString($content)
This function parses a page of filmaffinity that is available as a single string in memory.
$parser->parseString($content);
AUTHOR
William Belle, <william.belle at gmail.com>
BUGS AND LIMITATIONS
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.
SUPPORT
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
CPAN Ratings
Search CPAN
SEE ALSO
LICENSE AND COPYRIGHT
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.