I would like to parse a webpage to get the content of a table on that page. However, the table is created by calling document.write() and several javascript functions. i.e. when I load the URL request of that page, the source that I get contains no html tags of that table. Is it possible to get the source of the final page (i.e. the source containing the html tags of the table I want)? And it’s very curious that I can view the “final page source” in safari Browser’s Developer Tools but not the source of the page.
this is the source of the page the source
I would like to parse a webpage to get the content of a table
Share
You should use implement the
NSConnectionDataDelegateprotocol and use theNSConnectionclass. I believe that by the time-(void) connectionDidFinishLoading:(NSURLConnection *)connectionis called, the page has finished loading completely.