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

Web::Scraper::LibXML - Drop-in replacement for Web::Scraper to use LibXML

Description

       Web::Scraper::LibXML is a drop-in replacement for Web::Scraper to use the fast libxml-based HTML tree
       builder, HTML::TreeBuilder::LibXML.

       This is almost identical to HTML::TreeBuilder::LibXML's replace_original installer, like:

         use HTML::TreeBuilder::LibXML;
         HTML::TreeBuilder::LibXML->replace_original();

         use Web::Scraper;
         my $scraper = scraper { ... };
         # this code uses LibXML parser

       which overrides HTML::TreeBuilder::XPath's new() constructor so that ALL of your code using
       HTML::TreeBuilder::XPath is switched to the libxml based parser.

       This module, instead, gives you more control over which TreeBuilder to use, depending on the site etc.

Name

       Web::Scraper::LibXML - Drop-in replacement for Web::Scraper to use LibXML

See Also

       Web::Scraper HTML::TreeBuilder::LibXML

perl v5.34.0                                       2022-06-28                          Web::Scraper::LibXML(3pm)

Synopsis

         use Web::Scraper::LibXML;

         # same as Web::Scraper
         my $scraper = scraper { ... };

See Also