Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing jquery to get google "results 1-100 of about" ??? "for..." value
    text
    copied!<p>I have a question.</p> <p>How could I get the data from a google search response? I.e.:Results 1 - 100 of about <strong>230,533,709</strong> for blogs. (0.25 seconds)</p> <p>I want to get the value <strong>230,533,709</strong>.</p> <p>I use php to get the html response from the url. I.e.: <a href="http://blogsearch.google.com/blogsearch?hl=en&amp;ie=UTF-8&amp;q=blogs&amp;btnG=Search+Blogs" rel="nofollow noreferrer">http://blogsearch.google.com/blogsearch?hl=en&amp;ie=UTF-8&amp;q=blogs&amp;btnG=Search+Blogs</a></p> <p>I use ajax to get the code from php:</p> <pre><code>$.ajax({ url: "urlToPhp", type: "GET", dataType: "html", data: $('#form').serialize(), beforeSend: function(){}, success: function(html) { -&gt;what to do with html to get the value 230,533,709??? $('#results').html(test).show('slow'); } }); </code></pre> <p>Please help. I don't know how to do this. Regards!</p> <hr> <p>It still doesn't work. Could you please paste the complete code how you get the content and then parse the results value?</p> <p>I tried this piece of code and doesn't work:</p> <pre><code>$("#results").load("http://blogsearch.google.com/blogsearch?hl=en&amp;ie=UTF-8&amp;q=blogs&amp;btnG=Search+Blogs", function(data){ alert(data); &lt;- returns empty string alert($(data).text()); &lt;-returns null alert($(data).find('b:eq(3)')); &lt;- returns "[object Object]" }); </code></pre> <p>Why data is not the downloaded content. What means [object Object]?</p> <p>Thank for your help.</p> <p>Regards!</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