-
-
20 Oct 2014 00:27:05 UTC
- Distribution: Web-Scraper
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (7)
- Testers (4999 / 53 / 1)
- Kwalitee
Bus factor: 1- 75.95% Coverage
- License: perl_5
- Perl: v5.8.1
- Activity
24 month- Tools
- Download (25.13KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 9 contributors-
Alexandr Ciornii
-
Andrew Whatson
-
DQNEO
-
David Steinbrunner
-
Jay Shirley
-
Lee Aylward
-
Perlover
-
Stanislaw Pusep
-
vti
NAME
Web::Scraper::LibXML - Drop-in replacement for Web::Scraper to use LibXML
SYNOPSIS
use Web::Scraper::LibXML; # same as Web::Scraper my $scraper = scraper { ... };
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.
SEE ALSO
Module Install Instructions
To install Web::Scraper, copy and paste the appropriate command in to your terminal.
cpanm Web::Scraper
perl -MCPAN -e shell install Web::Scraper
For more information on module installation, please visit the detailed CPAN module installation guide.