WWW::Mechanize::AutoPager - Automatic Pagination using AutoPagerize
use WWW::Mechanize::AutoPager; my $mech = WWW::Mechanize->new; # Load siteinfo from http://swdyh.infogami.com/autopagerize $mech->autopager->load_siteinfo(); # Or, load manually $mech->autopager->add_site( url => 'http://.+\.tumblr\.com/', nextLink => ..., ); $mech->get('http://otsune.tumblr.com/'); if (my $link = $mech->next_link) { $mech->get($link); $mech->page_element; # HTML snippet }
WWW::Mechanize::AutoPager is a plugin for WWW::Mechanize to do automatic pagination using AutoPagerize user script.
THIS MODULE IS CONSIDERED EXPERIMENTAL AND ITS API WILL BE LIKELY TO CHANGE
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
HTML::AutoPagerize, http://swdyh.infogami.com/autopagerize
To install WWW::Mechanize::AutoPager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Mechanize::AutoPager
CPAN shell
perl -MCPAN -e shell install WWW::Mechanize::AutoPager
For more information on module installation, please visit the detailed CPAN module installation guide.