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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 ?