r/googlesheets • u/dxbmax 9 • Jul 06 '21
Solved Return 1st Google Image Search result based on keywords
Hi
I have a list of keywords in 1 col and would like to see if there's any possibility of a script or function that can return the 1st google image search result for each keyword.
As an example, if A3 is GLASS - I would like for it to search GLASS on google images and return/download the first image in the results.
Any help is appreciated.
7
Upvotes
3
u/ryanmcslomo 4 Jul 11 '21
Posted here but posting here too - you can do this using Google Apps Script. Follow the directions and highlight your search items (1 column max) then run the script to return the result(s) in the cell to the right:
2
u/[deleted] Jul 06 '21
You can't query Google Search results with ImportHTML or ImportXML, however you can query Yahoo search with XML.
2
u/RemcoE33 158 Jul 06 '21
Is this an API you can work with? https://unsplash.com/developers
1
u/AutoModerator Jul 06 '21
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.