PDA

View Full Version : How to get data from website into my program?




Storm9
Jan 16, 2009, 09:21 PM
Does anyone know how I can get data like say text from a website and use that in my program?



mcavjame
Jan 16, 2009, 09:26 PM
Do you mean dynamically, or a one time copy?

Storm9
Jan 16, 2009, 09:58 PM
Do you mean dynamically, or a one time copy?

dynamically, basically say I want to get stock quotes from finance.yahoo.com

dejo
Jan 17, 2009, 12:23 PM
dynamically, basically say I want to get stock quotes from finance.yahoo.com
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).