You mostly use
in live inspections (ie when you need browser for JS) and as far as I remember did WWW::Mechanize::Firefox and its various siblings support both.
The alternative is mirroring the DOM into a Perl/XML data structure and using the query API. (Mostly like xpath)
Maybe you should ask more precisely and show what you tried?
> 1) Find the 6th and 9th rows in a named table (given an id) and pull out the name and value pairs.
> 2) Slurp in every row in a named table and parse out the name value pairs.
See
Query syntax is not a Perl question, but there are plenty of good tutorials online.
Look out for browser features/addons allowing to play around with queries.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Screen scraping complex tables and divs (updated)
by LanX
in thread Screen scraping complex tables and divs
by parser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |