I believe Yahoo makes their headlines available via RSS, which is a whole lot simpler to extract than this.
Merlyn, this is very interesting to me. I haven't been able to find out anything on Yahoo's site about this. Can you please write any more details you have here?

I'd really like to see more companies distributing information in a more 'programmer-oriented' format, but I suppose they haven't got much incentive to do it. How often have my scripts been broken by sites changing their format? Only recently my SMS script has been broken (see my home node for info). Bravo to Fedex for being the only company I know that makes their services available through an API -- they provide TrackAPI and ShipAPI. Without companies producing APIs etc like this, or content in a standardised structured format, the full benefit of the 'information revolution' (apologies for using cheesy marketing phrase) cannot be realised.

On a side note, does anyone have any idea how to parse RDF in Perl? I was under the impression that RDF was just another XML DTD, but at the W3C site I couldn't find out much about this, and although they did have some Perl code, it wasn't very useful. Any help is appreciated.

<rant;> Thank you to DMOZ etc for providing no real help with parsing their RDF dir dumps </rant>


In reply to RE: RE: Get yahoo's news headlines by SuperCruncher
in thread Get yahoo's news headlines by peabody

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.