Skip to content

Instantly share code, notes, and snippets.

Created Aug 30, 2012
What would you like to do?
Apps Script Release Notes RSS Feed
function getFeed() {
var cache = CacheService.getPublicCache();
var cachedFeed = cache.get("gas-relnotes-feed");
if(cachedFeed == null) {
var URL = "";
var feedSize = 25;
var data = UrlFetchApp.fetch(URL).getContentText();
var dox = Xml.parse(data, true);
var text = dox.html.body.toXmlString().replace(/<\?[^>]*>/g,"");
var e4x = new XML(text);
var releases = e4x..h3;
var notes = [];
for(n in releases) {
if(n < feedSize) {
var title = releases[n];
var url = URL+"#"+releases[n].@['id'];
var description = releases[n].parent().children()[releases[n].childIndex()+1];
notes.push({title:title, url:url, description:description});
else break;
var template = HtmlService.createTemplateFromFile("Feed");
template.notes = notes;
var feed = template.evaluate().getContent();
cache.put("gas-relnotes-feed", feed);
else var feed = cachedFeed;
return feed;
function doGet() {
return ContentService
<rss version="2.0">
<title>Apps Script Release Notes</title>
<description>This page identifies changes to Google Apps Script and the dates that those changes were introduced. This document is intended to be a reference for developers who are looking for an easy way to identify recent changes to Google Apps Script services. Changes in this document will be listed by date, beginning with the most recently released changes. Each change in the list will link to the corresponding place in the documentation, if applicable, to help you easily locate the updated documentation.</description>
<? for(n in notes) { ?>
<pubDate><?=Utilities.formatDate(new Date(Date.parse(notes[n].title)), "GMT", "E, dd MMM yyyy HH:mm:ss z")?></pubDate>
<guid isPermaLink="true"><?=notes[n].url?></guid>
<? } ?>
Copy link

TomTasche commented Jan 24, 2014

too lazy to copy this into my drive. do you have an instance of this up and running? :)

Copy link

loicbisiere commented Mar 26, 2014

Does this script still work ?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment