You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll collect all different codebases I know of that currently auto-query Nutrimatic in some way.
GScripts/JS
/**
* Gets results from nutrimatic.org.
*/
function fetchResultsFromNutrimatic(queryText, maxResults) {
if (maxResults == undefined) {
maxResults = 10;
}
var result_re = />([ a-z]+)<\/span><br>$/;
var uriSafeQueryText = encodeURIComponent(queryText)
var response = UrlFetchApp.fetch("https://nutrimatic.org/?src=googledoc-puzzle-tools&q="+uriSafeQueryText);
var lines = response.getContentText().split("\n");
var results = [];
for (line in lines) {
var curLine = lines[line];
var match = result_re.exec(curLine);
if (match != null) {
results.push(match[1]);
if (results.length >= maxResults) break;
}
}
return results;
}
No description provided.
The text was updated successfully, but these errors were encountered: