I need to extract links from a html file (not all). Here are the xpaths
/html/body/p/a /html/body/p[2]/a /html/body/p[3]/a .... /html/body/p[66]/a
how can extract the links with TreeBuilder?
here is what I have I do not know how to use the findvalues function
$mech->get($url); $content = $mech->response()->decoded_content(); my $tree = HTML::TreeBuilder::XPath->new; $tree->parse($content); $tree->eof; @res = $tree->findvalues(???);#
In reply to Help with xpath and TreeBuilder by danny0085
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |