in reply to Screen scraping complex tables and divs
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Screen scraping complex tables and divs (updated)
by parser (Acolyte) on Oct 13, 2017 at 21:42 UTC | |
by Corion (Patriarch) on Oct 14, 2017 at 06:44 UTC | |
by LanX (Saint) on Oct 13, 2017 at 21:53 UTC | |
by LanX (Saint) on Oct 14, 2017 at 22:43 UTC | |
by parser (Acolyte) on Oct 17, 2017 at 16:45 UTC |