WWW::M...toPager(3pm)

✨ NAME ✨

okay so bestie, this page is the manual for WWW::Mechanize::AutoPager β€” the 3pm perl module page, in case you were wondering where the weird truncated WWW::M...toPager(3pm) thing came from at the top. it's giving "automatic pagination using AutoPagerize" and honestly? obsessed. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole vibe, copy-paste ready, no cap:

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
}

like, that's the whole plot. you load siteinfo, you get a page, you ask for the next link, you go. main character energy fr fr. 🌸


πŸ’… DESCRIPTION πŸ’…

WWW::Mechanize::AutoPager is a plugin for WWW::Mechanize that does automatic pagination using the AutoPagerize user script. it literally just keeps scrolling the vibe for you so you don't have to click "next" like some kind of Victorian orphan. 🧚

⚠️ ok but listen β€” THIS MODULE IS CONSIDERED EXPERIMENTAL AND ITS API WILL BE LIKELY TO CHANGE. read that again. the API is a work in progress, it's in its messy era, do not build your entire life on it. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Tatsuhiko Miyagawa <miyagawa@bulknews.net>


πŸŽ€ LICENSE πŸŽ€

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source, we love to see it. 🫢


🌈 SEE ALSO 🌈


and that's the whole page bestie!! this was perl v5.32.1, dated 2021-08-21, brought to you by the fine folks who write the User Contributed Perl Documentation β€” go forth and paginate automatically, periodt πŸ’œβœ¨

πŸ“¦ where this page comes from