RSS | Module Info | Add a review of HTML-TreeBuilder-XPath
HTML-TreeBuilder-XPath
(0.14)
Thanks for this, I'm coding many web-scrapers for years, and HTML-TreeBuilder-XPath is quite easier & quicker to write code than HTML-TreeBuilder alone.
Gilles Quenot - 2012-11-18T09:54:30 (permalink)
1 out of 1 found this review helpful.
Was this review helpful to you?
Yes
No
HTML-TreeBuilder-XPath
(0.09)
I was kind of disappointed because I thought this module would help eliminate some of the cruft and needless looping and checking for defined parent elements that the traditional HTML::TreeBuilder requires. It does not. It is fairly limited in its ability to just wrap a ->look_down call. You'll still have to map over lists returned and call $_->getValue() . I don't _think_ XPath differentiates between finding a node and finding a value, this module does, and that hurts usability.
This in my eyes should return a list of src attributes for all img elements that have class="mainPhoto"
$root->findvalue( '//img[@class="mainPhoto"]/@src' );
Instead you're left to do:
map $_->getValue('src')
, $root->findnodes( '//img[@class="mainVehiclePhoto"]/@src' )
;
Evan Carroll - 2008-01-22T10:05:10 (permalink)
3 out of 4 found this review helpful.
Was this review helpful to you?
Yes
No
HTML-TreeBuilder-XPath
(0.08)
Cool module. HTML data extraction is developed more faster, easy and with pleasure :)
Thanks
Dmytro Nedbaylo - 2007-09-13T02:15:46 (permalink)
6 out of 6 found this review helpful.
Was this review helpful to you?
Yes
No
HTML-TreeBuilder-XPath
(0.06)
This module is really useful to extract content using XPath, even from not-well-formed HTML. Nice combination of technologies: HTML::TreeBuilder and XML::XPathEngine.
Tatsuhiko Miyagawa - 2006-10-03T02:34:16 (permalink)
8 out of 8 found this review helpful.
Was this review helpful to you?
Yes
No

