function sourceForgeCount() { var response = UrlFetchApp.fetch("http://sourceforge.jp/projects/<PROJECT_NAME>/releases/"); var myRegexp = /<td class=\"download_count\">([\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); }