Google Code のダウンロード数を集計する Google Apps Script

function googleCodeCount() {
  var response = UrlFetchApp.fetch("https://code.google.com/p/<PROJECT_NAME>/downloads/list?can=1");

  var myRegexp = /<td class=\"vt col_7\"([\s\S]*?)<\/td>/gi;
  var elems = response.getContentText().match(myRegexp);
  var count = 0;
  for(var i in elems) {
    var d = elems[i]
    d = d.replace(/(^\s+)|(\s+$)/g, "");
    d = d.replace(/<\/?[^>]+>/gi, "");
    count += new Number(d)
  }
  Logger.log(count);
}