Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get Content of loaded HTML page in WebView of iPhone
    text
    copied!<p>I have an application in which i will have to get the data of LOADED webView,How can i get that? Let me explain it in details:</p> <p>1) I have a link 'www.google.com'</p> <p>2) I entered the keyword 'question' and generated a link like, <a href="https://www.google.co.in/#hl=en&amp;sclient=psy-ab&amp;q=%@&amp;oq=question&amp;gs_l=serp.3..0i10l4.90108.93059.2.93802.10.8.2.0.0.0.171.1173.0j8.8.0...0.0...1c.1.8.psy-ab.6SJ9cs6717Q&amp;pbx=1&amp;bav=on.2,or.r_cp.r_qf.&amp;fp=27feaf18f129334d&amp;biw=1901&amp;bih=383" rel="nofollow">https://www.google.co.in/#hl=en&amp;sclient=psy-ab&amp;q=%@&amp;oq=question&amp;gs_l=serp.3..0i10l4.90108.93059.2.93802.10.8.2.0.0.0.171.1173.0j8.8.0...0.0...1c.1.8.psy-ab.6SJ9cs6717Q&amp;pbx=1&amp;bav=on.2,or.r_cp.r_qf.&amp;fp=27feaf18f129334d&amp;biw=1901&amp;bih=383</a></p> <p>3) after creating request with the above URL i open up in WebView. </p> <pre><code> NSString * urlStr = [NSString stringWithFormat:@"https://www.google.co.in/#hl=en&amp;sclient=psy-ab&amp;q=%@&amp;oq=question&amp;gs_l=serp.3..0i10l4.90108.93059.2.93802.10.8.2.0.0.0.171.1173.0j8.8.0...0.0...1c.1.8.psy-ab.6SJ9cs6717Q&amp;pbx=1&amp;bav=on.2,or.r_cp.r_qf.&amp;fp=27feaf18f129334d&amp;biw=1901&amp;bih=383"]; NSURL * gotoUrl = [NSURL URLWithString:urlStr]; NSURLRequest * requestP = [NSURLRequest requestWithURL:gotoUrl cachePolicy:NSURLCacheStorageAllowed timeoutInterval:60]; [webVw loadRequest:requestP]; </code></pre> <p>4) I got some search results, loaded in webView,</p> <p>5) Now i want to parse those results to get the resulted LINKS,DESCRIPTION etc....</p> <p>How can i get the data loaded in WebView? please suggest proper way, I did it by Google search API's which takes the keyword and gives the response and then I parse it by general available methods. so, please suggest something different.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload