I'm writing a little program for my father, (as a gift) he's a bit of a stock market addict who spends all day futzing around on the computer looking up stock prices and all that.

i told him to try generating an "online portfolio" and get all of that automated so he dosen't have to waste so much time on the lookups and can spend more time on his research/analysis. His response was that he did not want his information in somone else's database (understandable i geuss)

i've decided to write a little number that parses through a list of his favorite ticker symbols and sends a GET to the server, parses the incoming HTML and saves all of the day's info to a file (which he can edit in XL)

my problem is parsing the info out of a table and into a comma delimited line of printout text
print "$symbol,$value,$volume... etc"
i've tried using HTML::FormatText but that just leaves me with "table not shown"

i know someone here is smarter than me and can give me this little boost :)


In reply to Extracting Data from an HTML table 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.