Parse values from HTML element using Google App Script?
问题 I am trying to parse HTML element by class on Google Sites, my code is: function doGet(){ var html = UrlFetchApp.fetch ('http://indicadoresdeldia.cl/').getContentText(); var doc = XmlService.parse(html); var html = doc.getRootElement(); var menu = getElementsByClassName(html, 'span3 utm')[0]; var output = XmlService.getRawFormat().format(menu); return HtmlService.createHtmlOutput(output); } Ween i run the code appear the nexte error message ReferenceError: "getElementsByClassName" is not