I'm struggling with a function I'm trying to create. The function would scan the page of a URL and return "lacrosse" (or any elementID) if that word is found in the page. I'm writing this in the google apps script to call the URL with URLFetchApp. It's not coming back that it's valid function. Any ideas? Thanks!
function sports ()
var sport ;
sport = UrlFetchApp .fetch(uri) .getContentText() .getElementByID("lacrosse") .toString() ;
return sport ;