ヘッドユニットのタイトルページを取得したかった
私はСтраховыекомпанииУфыを取得することを期待しています。АдресаотделенийвУфе
そして、����������������������を取得します。����������������������</p>
サンプルスクリプト:
function doGet() {
var options1 = {
contentType: "text/html; charset=windows-1251",
muteHttpExceptions: true
};
var url_catalog = 'http://ufa.insure-company.ru/';
var response = UrlFetchApp.fetch(url_catalog, options1);
var txt = response.getContentText();
doc = Xml.parse(txt, true);
var tbody = doc.html.head;
var title = tbody.getElements("title");
var t = title[0].getText();
return HtmlService.createHtmlOutput(t);
}