Download HTML from website URL in objective C (iphone)
- by Jonathan
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?