|Don't ask to ask, just ask|
HTML::TreeBuilder::XPath not loading the complete $pageby Lord Gartlar (Initiate)
|on Mar 19, 2013 at 18:50 UTC||Need Help??|
Lord Gartlar has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to parse some URL with HTML TreeBuilder XPATH.
I retrieve an URL using LWP UserAgent which is loaded to $response->content.
Here's the code that loads that variable to a $tree instance:
If I print the content of $response->content to a plain html file and open it using Firefox, the total amount of /html/body/form/div's is 19.
However, printing $t->size results in only 12..
Why is this happening??
$tree is ignoring most of my divs and so I can't retrieve data from them....