NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
XPath (Score:3, Informative)
Yep. Wrap your brain around this hack:
In the context of an XSLT stylesheet (or something that provides the
document()function to retrieve a document by name), this little tidbit finds all of the links containing.htmlin the href, fetches them, parses them, and returns the title of each page.A spider. In one expression.
Assign that to a nodeset and reapply the expression, and you're going two levels out. (Or just nest
Re:XPath (Score:2)
(Morbus, you getting this for Spidering Hacks? :-)
--Nat
Re:XPath (Score:1)
Reply to This
Parent