What would be the best way to parse an HTML string after a URLfetch ? If we find element it would return True else False, right now I'm using this , but I don't think I'm on the right path since it's already erroring out ! This is running as a script in a google spreadsheet .
function amazon() {
var response = UrlFetchApp.fetch("http://www.amazon.com/");
var text = response.getContentText();
var result = text.find("kindle");
return result
}