Since I'm not anxious to register on some website just so I can see what on earth the tables you're talking about look like, how about trying to give a semi-technical description for us? You said they're not regular HTML tables, so what are they? Are they graphic images? Are they javascript entities? Are they PDF files?

And since you've already tried everything you can think of, can you tell us what you thought of thus far, so that we know where you've already invested time? While you're at it, you might also let us know in what way your attempts fell short of meeting the need.

Since I don't know better, I'll suggest that most websites worth their weight in salt will also be lynx-friendly. That being the case, perhaps the easiest way to get at the data from the tables in question is to parse the all-text output from lynx. It's easy to grab the output from lynx. ..of course this assumes you're on a linux/unix type system. In this way, you can use the robustness of lynx -- a full-fledged text-based browser capable of handling cookies, and all sorts of curve-balls -- to intelligently dump the site to text.


Dave


In reply to Re: Grabbing Embedded Tables from HTML by davido
in thread Grabbing Embedded Tables from HTML by Anonymous Monk

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.