WWW::Alltop::Topic - A Topic from Alltop.com
use WWW::Alltop::Topic; use WWW::Mechanize; my $t = WWW::Alltop::Topic->new( name => 'Tech', url => 'http://tech.alltop.com/', mech => WWW::Mechanize->new, ); # ArrayRef of WWW:Alltop::TopicListing my $listings = $t->listings; foreach my $listing (@$listings) { ... }
A topic representation from Alltop.com, used to fetch all listings for a given topic (a topic being a subdomain of alltop.com).
The name of the topic. For example, 'Tech'.
The url of the topic. For example, http://tech.alltop.com/.
A WWW::Mechanize instance
Fetches the listings (WWW::Alltop::TopicListing) for the topic, returning an ArrayRef of all the listings found.
WWW::Alltop
To install WWW::Alltop, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Alltop
CPAN shell
perl -MCPAN -e shell install WWW::Alltop
For more information on module installation, please visit the detailed CPAN module installation guide.