Import Google Search Results Using Importxml
I Want to Use Google Sheets to Grab Google Search Results's Number. My Formula Is: =Importxml(Url,"//Div[@Id='Resultstats']") =Importxml("";"//Div[@Id='Resultst...
I want to use Google Sheets to grab Google search results's number. My formula is:
=ImportXML(URL,"//div[@id='resultStats']")
=IMPORTXML("";"//div[@id='resultStats']")
Google Sheets always returns #N/A, is there something wrong with the formula? I think the problem is in the url, but I don't have solution.
1 Answer
Answer is here: importxml in google docs and returning a google search result
Google has lately been blocking search requests made from both Apps Scripts and Google Sheets though the requests are made from one of their own IPs. They probably do this to prevent scraping.