i need to retrieve the page title from an URL i already have using Apps Script.
var url= r.getValue();
var title= magically_retrieve_title(url);
setTitle(title)
How can i do that?
i need to retrieve the page title from an URL i already have using Apps Script.
var url= r.getValue();
var title= magically_retrieve_title(url);
setTitle(title)
How can i do that?
If you want to get the title of the page at a 'normal' URL, then you can get the contents of the page using UrlFetchApp.fetch(url) and then parse the title tag.
If not, then please provide more information- what is r here ? What sort of URL are you working with ?