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
    Messages:
    83
    #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
    Messages:
    1,031
    Location:
    phased to this universe
    #2
    Do you mean dynamically, or a one time copy?
     
  3. macrumors member

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

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Messages:
    15,045
    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