Warm tip: This article is reproduced from stackoverflow.com, please click
google-sheets google-sheets-formula google-sheets-importxml web-scraping xpath

Designing a macro, regex expression or approach for importing first search result from Google

发布于 2020-03-27 10:17:22

I have one cell in a Google spreadsheet, which contains "apple". In the column next to it, I am trying to take the cell with the text "apple", run that through Google search, and return the URL of the first search result that comes up.

What is the solution to this problem?

Questioner
user5480023
Viewed
83
player0 2019-07-03 21:54

Unfortunately, there is no solution to this issue. Google does not allow scraping Google Search via Google Sheets. Any such attempt will result in #N/A error.

0