Parse RSS Feeds with Google Apps Script

This snippet explains how you can read and parse RSS feeds with Google Apps Script. The script reads the feed using URLFetchApp, translates the RSS Feed and then serves it as an RSS feed using the ContentService (the mime type is set to RSS).

Also, the feed content is cached for an hour to reduce the number of URL fetch requests.