How to get data from website into my program?

Discussion in 'iPhone/iPad Programming' started by Storm9, Jan 16, 2009.

  1. macrumors member

    Joined:
    Dec 1, 2007
    #1
    Does anyone know how I can get data like say text from a website and use that in my program?
     
  2. macrumors 65816

    mcavjame

    Joined:
    Mar 10, 2008
    Location:
    phased to this universe
    #2
    Do you mean dynamically, or a one time copy?
     
  3. thread starter macrumors member

    Joined:
    Dec 1, 2007
    #3
    dynamically, basically say I want to get stock quotes from finance.yahoo.com
     
  4. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    You can either use NSURLRequest to retrieve the HTML and then parse out what you need or you can see if they have some kind of XML feed (and use NSXMLParser) or a JSON feed (and use the JSON library that you can find references to floating around this forum).
     

Share This Page