logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

WWW::Mechanize::AutoPager - Automatic Pagination using AutoPagerize

Author

       Tatsuhiko Miyagawa <miyagawa@bulknews.net>

Description

       WWW::Mechanize::AutoPager is a plugin for WWW::Mechanize to do automatic pagination using AutoPagerize
       user script.

       THISMODULEISCONSIDEREDEXPERIMENTALANDITSAPIWILLBELIKELYTOCHANGE

License

       This library is free software; you can redistribute it and/or modify it under the same terms as Perl
       itself.

Name

       WWW::Mechanize::AutoPager - Automatic Pagination using AutoPagerize

See Also

       HTML::AutoPagerize, <http://swdyh.infogami.com/autopagerize>

perl v5.32.1                                       2021-08-21                     WWW::Mechanize::AutoPager(3pm)

Synopsis

         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
         }

See Also