Using a Webview, I would like to find the links inside this page.
-(void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame {
DOMDocument *myDOMDocument = [[self.webview mainFrame] DOMDocument];
looks like a good starting point, but I find the WebScriptObject Class Reference a little cryptic. Clearly I don’t want to evaluate some Javascript to get the links. I want to directly read the DOM.
How may I find which nodes in the DOM are links, and get the address they are pointing to ?
Find the DOMNodes for images
see walkNodeTree @ http://cocoadev.com/wiki/DOMCore
— complete sample to find image nodes, get their src and make nsimages