HTML::AutoPagerize(3pm)

HTML::AutoPagerize3pm

Utility to load autopagerize siteinfo stuff

Usage

  use HTML::AutoPagerize;
  my $autopager = HTML::AutoPagerize->new;
  $autopager->add_site(
      url         => 'http://.+.tumblr.com/',
      nextLink    => '//div[@id="content" or @id="container"]/div[last()]/a[last()]',
      pageElement => '//div[@id="content" or @id="container"]/div[@class!="footer" or @class!="navigation"]',
  );
  my $uri  = 'http://otsune.tumblr.com/';
  my $html = LWP::Simple::get($uri);
  my $res = $autopager->handle($uri, $html);
  if ($res) {
      my $next_link = $res->{next_link};    # URI object
      my $content   = $res->{page_element}; # XML::XPathEngine::NodeSet object. may be empty
  }

Overview

HTML::AutoPagerize is an utility module to load SITEINFO defined in AutoPagerize. AutoPagerize is an userscript to automatically figure out the "next link" of the current page, then fetch the content and insert the content by extracting the "page element".

Releases

7 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7–10
  2. 11–12
  3. 13

Author

Tatsuhiko Miyagawa <[email protected]>

License

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

From libhtml-autopagerize-perl 0.02-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.