Download HTML from website URL in objective C (iphone)
Posted
by Jonathan
on Stack Overflow
See other posts from Stack Overflow
or by Jonathan
Published on 2010-05-01T09:22:23Z
Indexed on
2010/05/01
9:27 UTC
Read the original article
Hit count: 179
I'm trying to get the HTML data of a website so that I can parse it. I have parsing bit sorted out but using the following code doesn't seem to work:
NSData *data = [[NSData alloc] initWithContentsOfURL: [NSURL URLWithString:@"http://thewebsite.net"]];
Is this the way I should be doing it or is there another way?
© Stack Overflow or respective owner