Getting a list of the day's headlines?

Discussion in 'Web Design and Development' started by jonpeter, Dec 28, 2013.

  1. jonpeter macrumors member

    Joined:
    Sep 19, 2013
    Location:
    MI
    #1
    So I'm basically a newborn web-developer/designer.

    I was wondering if there is a way to get a list of all the day's headlines (pure article title) in a list format (say from a site such as macrumors or engadget)?

    Also.
    Way to take a selected title and then "expand" the article as though looking at the article without going to the actual site?

    Thanks!
     
  2. Dunmail macrumors regular

    Joined:
    Mar 27, 2009
    Location:
    Skipton, UK
    #2
    For your first request, I'd look at something like SimplePie which is a PHP library that scrapes RSS feeds. Obviously this relies on your source having an RSS feed but most of the major news channels do. Since this is a PHP option, it's run server side. I have used Yahoo Pipes to do a similar thing on the client side but I'm not sure if it's still in active development - it still works. One advantage Pipes has over RSS is that you can scrape any page to get what you want.

    The only way I can think of (having just risen here in the UK) is if the site(s) offer an API through which you could get the article using AJAX
     

Share This Page