Runs one product search each week and writes a row per result - price, seller, delivery, rating - to your sheet.
Uses
Google Sheets
Serper
Turn a shopping search into a price sheet
searchQuery to blank.Set searchQuery to blank.spreadsheetUrl to blank.Set spreadsheetUrl to blank.sheetName to blank.Set sheetName to blank.countryCode to blank.Set countryCode to blank.maxProducts to 20.Set maxProducts to 20.spreadsheetUrl. Save it as sheet.Read the rows of spreadsheetUrl. Save it as sheet.sheetHeaders to sheet.headers.Set sheetHeaders to sheet.headers.sheetHeaders is emptyIf sheetHeaders is emptyYes
sheetName in spreadsheetUrl.Add a row to sheetName in spreadsheetUrl.No
No steps
searchQuery. Save it as search.Search Google Shopping for searchQuery. Save it as search.products to search.products.Set products to search.products.addedCount to 0.Set addedCount to 0.noPriceCount to 0.Set noPriceCount to 0.product in products:For each product in products:addedCount multiplied by 1 is greater than or equal to maxProducts multiplied…If addedCount multiplied by 1 is greater than or equal to maxProducts multiplied…Yes
No
No steps
productErrorIf a step below fails, save the error as productErrorTry
product.title and save it as productTitle.Trim product.title and save it as productTitle.productTitle is nullIf productTitle is nullYes
productTitle to blank.Change productTitle to blank.No
No steps
productTitle is emptyIf productTitle is emptyYes
Skipped a shopping result that came back without a product name..Show in the output: Skipped a shopping result that came back without a product name..No
product.price and save it as priceAsListed.Trim product.price and save it as priceAsListed.priceAsListed is nullIf priceAsListed is nullYes
priceAsListed to blank.Change priceAsListed to blank.No
No steps
product.source and save it as seller.Trim product.source and save it as seller.seller is nullIf seller is nullYes
seller to blank.Change seller to blank.No
No steps
product.delivery and save it as delivery.Trim product.delivery and save it as delivery.delivery is nullIf delivery is nullYes
delivery to blank.Change delivery to blank.No
No steps
product.rating and save it as rating.Trim product.rating and save it as rating.rating is nullIf rating is nullYes
rating to blank.Change rating to blank.No
No steps
product.rating_count and save it as reviews.Trim product.rating_count and save it as reviews.reviews is nullIf reviews is nullYes
reviews to blank.Change reviews to blank.No
No steps
product.link and save it as link.Trim product.link and save it as link.link is nullIf link is nullYes
link to blank.Change link to blank.No
No steps
priceValue to blank.Set priceValue to blank.priceAsListed isn't emptyIf priceAsListed isn't emptyYes
priceAsListed and save it as priceValue.Extract the first number from priceAsListed and save it as priceValue.No
noPriceCount.Add 1 to noPriceCount.sheetName in spreadsheetUrl.Add a row to sheetName in spreadsheetUrl.addedCount.Add 1 to addedCount.On error
productError as text.Show in the output: Skipped a shopping result that could not be read: productError as text.addedCount multiplied by 1 is 0If addedCount multiplied by 1 is 0Yes
No
addedCount as text products to the '@sheetName' tab. noPriceCount as text of them were listed without a price, so their price columns are empty.Show in the output: Wrote addedCount as text products to the '@sheetName' tab. noPriceCount as text of them were listed without a price, so their price columns are empty.