HTML Parser for Googe Apps Script
project key: 1gMNYu6-SlYdKbfFMSXZz718quQVgll-qKhNobIaJwMVYL_9EgZ9GQlmp
Example:
var html = UrlFetchApp.fetch('http://en.wikipedia.org/wiki/Document_Object_Model').getContentText()
var doc = XmlService.parse(html)
var rootElement = doc.getRootElement()
var parser = HtmlParser.of(rootElement)
var element = parser.getElementById('firstHeading')
API is inspired by Document.
var element = parser.getElementById('firstHeading')
var elements = parser.getElementsByClassName('firstHeading')
var elements = parser.getElementsByTagName('h1')