I'm confused because the thread you linked to is already very good.

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?

update

> 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

and alternatively Both methods support querying children elements of a given ID.

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.