Google Shopping Product Reviews Feed Generator

Shopify provides a useful free app for collecting product reviews from customers. The reviews are SEO-friendly, but not particularly SEM friendly as the format of the reviews does not map onto the Google Shopping product review XML-schema. Which is why I wrote a script to convert Shopify product reviews to Google Shopping product reviews!

The code below is for the “minimal sample” as Google calls is.