【发布时间】:2014-10-17 16:42:16
【问题描述】:
我开始使用 Google Apps 脚本编码。
所以我尝试了这个例子:fetch(url)
// The code below logs the HTML code of the Google home page.
var response = UrlFetchApp.fetch("http://www.google.com/");
Logger.log(response.getContentText());
我收到的标签来自:
<!doctype html> to <style>
但是没有这些标签:
</head>, <body>, </body> or </html>
这是一个不正确的 Google Apps 脚本示例还是我的错误? 如何从 google.com 响应完整的 HTML 代码?
【问题讨论】:
标签: html google-apps-script urlfetch