{"id":27867,"date":"2026-05-23T23:40:38","date_gmt":"2026-05-23T14:40:38","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=27867"},"modified":"2026-10-01T17:09:46","modified_gmt":"2026-10-01T08:09:46","slug":"gas-internal-url-crawler","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/gas-internal-url-crawler\/","title":{"rendered":"Google Apps Script\u2502\u30b5\u30a4\u30c8\u5185\u30ea\u30f3\u30af\u3092\u4e00\u62ec\u30af\u30ed\u30fc\u30eb\u3057\u3066\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u51fa\u529b\u3059\u308b"},"content":{"rendered":"<p class=\"wp-block-paragraph\">GAS\u3067\u3001\u6307\u5b9aURL\u304b\u3089\u898b\u3064\u304b\u308b\u540c\u3058\u30db\u30b9\u30c8\u5185\u306eHTML\u30ea\u30f3\u30af\u3092\u305f\u3069\u308a\u3001URL\u30fb\u53c2\u7167\u5143\u30fb\u6df1\u3055\u30fbHTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30fb\u30bf\u30a4\u30c8\u30eb\u3092\u30b7\u30fc\u30c8\u3078\u51fa\u529b\u3059\u308b\u7c21\u6613\u30af\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4e00\u89a7\u3084\u30b5\u30a4\u30c8\u306e\u5168\u30da\u30fc\u30b8\u4e00\u89a7\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4f7f\u3044\u65b9<\/h2>\n<p class=\"wp-block-paragraph\">\u81ea\u5206\u304c\u7ba1\u7406\u3059\u308b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u3001\u62e1\u5f35\u6a5f\u80fd\u2192Apps Script\u3092\u958b\u304d\u3001\u4e0b\u306e\u30b3\u30fc\u30c9\u5168\u6587\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u30b7\u30fc\u30c8\u3092\u518d\u8aad\u8fbc\u3057\u3001URL\u8abf\u67fb\u2192URL\u3092\u5165\u529b\u3057\u3066\u958b\u59cb\u3092\u9078\u3073\u3001\u8abf\u67fb\u3092\u8a31\u53ef\u3055\u308c\u305f\u30b5\u30a4\u30c8\u306eURL\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u521d\u56de\u306f\u5fc5\u8981\u306aGoogle\u306e\u6a29\u9650\u3092\u78ba\u8a8d\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u7d50\u679c\u306fURL\u4e00\u89a7\u30b7\u30fc\u30c8\u3078\u51fa\u529b\u3057\u3001\u540c\u540d\u30b7\u30fc\u30c8\u304c\u3042\u308c\u3070URL\u4e00\u89a7_1\u306a\u3069\u306e\u65b0\u898f\u30b7\u30fc\u30c8\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u65e2\u5b58\u30b7\u30fc\u30c8\u306f\u6d88\u53bb\u3057\u307e\u305b\u3093\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u5168\u6587<\/h2>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\nvar CRAWLER = {\n  menuName: &#x27;URL\u8abf\u67fb&#x27;,\n  sheetName: &#x27;URL\u4e00\u89a7&#x27;,\n  maxPages: 100,\n  batchSize: 5,\n  excludedExtensions: \/\\.(?:jpg|jpeg|png|gif|webp|svg|ico|css|js|mjs|map|pdf|zip|rar|7z|gz|mp4|mp3|wav|webm|mov|avi|doc|docx|xls|xlsx|ppt|pptx|woff|woff2|ttf|eot|otf|json|xml|rss|atom|txt)$\/i\n};\n\nfunction onOpen() {\n  SpreadsheetApp.getUi()\n    .createMenu(CRAWLER.menuName)\n    .addItem(&#x27;URL\u3092\u5165\u529b\u3057\u3066\u958b\u59cb&#x27;, &#x27;showCrawlerPrompt&#x27;)\n    .addToUi();\n}\n\nfunction showCrawlerPrompt() {\n  var ui = SpreadsheetApp.getUi();\n  var res = ui.prompt(\n    &#x27;URL\u8abf\u67fb&#x27;,\n    &#x27;\u8abf\u67fb\u3059\u308bURL\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#x27;,\n    ui.ButtonSet.OK_CANCEL\n  );\n\n  if (res.getSelectedButton() !== ui.Button.OK) return;\n\n  var input = res.getResponseText().trim();\n  if (!input) {\n    ui.alert(&#x27;URL\u304c\u7a7a\u3067\u3059\u3002&#x27;);\n    return;\n  }\n\n  crawlUrls(input);\n  ui.alert(&#x27;\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u300cURL\u4e00\u89a7\u300d\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#x27;);\n}\n\nfunction crawlUrls(inputUrl) {\n  var rootUrl = normalizeUrl_(inputUrl);\n  var rootHostKey = normalizeHostKey_(parseUrl_(rootUrl).host);\n\n  var ss = SpreadsheetApp.getActiveSpreadsheet();\n  var sheet = createOrClearSheet_(ss, CRAWLER.sheetName);\n\n  sheet.getRange(1, 1, 1, 5).setValues(&#91;&#91;\n    &#x27;URL&#x27;,\n    &#x27;Source URL&#x27;,\n    &#x27;Depth&#x27;,\n    &#x27;Status&#x27;,\n    &#x27;Title&#x27;\n  &#93;&#93;);\n\n  var queue = &#91;{ url: rootUrl, sourceUrl: &#x27;&#x27;, depth: 0 }&#93;;\n  var seen = {};\n  var rows = &#91;&#93;;\n\n  seen&#91;getUrlKey_(rootUrl)&#93; = true;\n\n  while (queue.length &amp;&amp; rows.length &lt; CRAWLER.maxPages) {\n    var tasks = queue.splice(0, CRAWLER.batchSize);\n    var requests = tasks.map(function (task) {\n      return {\n        url: task.url,\n        method: &#x27;get&#x27;,\n        followRedirects: false,\n        muteHttpExceptions: true,\n        validateHttpsCertificates: true,\n        headers: {\n          Accept: &#x27;text\/html,application\/xhtml+xml,*\/*;q=0.8&#x27;\n        }\n      };\n    });\n\n    var responses = fetchAllSafe_(requests);\n\n    for (var i = 0; i &lt; tasks.length &amp;&amp; rows.length &lt; CRAWLER.maxPages; i++) {\n      var task = tasks&#91;i&#93;;\n      var result = parseResponse_(task, responses&#91;i&#93;, rootHostKey);\n\n      rows.push(&#91;\n        task.url,\n        task.sourceUrl,\n        task.depth,\n        result.status,\n        safeCellText_(result.title)\n      &#93;);\n\n      result.links.forEach(function (url) {\n        if (rows.length + queue.length &gt;= CRAWLER.maxPages) return;\n\n        var key = getUrlKey_(url);\n        if (seen&#91;key&#93;) return;\n\n        seen&#91;key&#93; = true;\n        queue.push({\n          url: url,\n          sourceUrl: task.url,\n          depth: task.depth + 1\n        });\n      });\n    }\n  }\n\n  if (rows.length) {\n    sheet.getRange(2, 1, rows.length, 5).setValues(rows);\n  }\n\n  styleSheet_(sheet);\n}\n\nfunction parseResponse_(task, response, rootHostKey) {\n  if (response &amp;&amp; response.__error) {\n    return {\n      status: &#x27;ERROR&#x27;,\n      title: response.__error.message || &#x27;&#x27;,\n      links: &#91;&#93;\n    };\n  }\n\n  var status = response.getResponseCode();\n  var headers = response.getAllHeaders ? response.getAllHeaders() : response.getHeaders();\n  var contentType = getHeader_(headers, &#x27;Content-Type&#x27;);\n\n  if (status &lt; 200 || status &gt;= 300 || !isHtml_(contentType)) {\n    return {\n      status: status,\n      title: &#x27;&#x27;,\n      links: &#91;&#93;\n    };\n  }\n\n  var html = response.getContentText();\n\n  return {\n    status: status,\n    title: extractTitle_(html),\n    links: extractLinks_(html, task.url, rootHostKey)\n  };\n}\n\nfunction fetchAllSafe_(requests) {\n  try {\n    return UrlFetchApp.fetchAll(requests);\n  } catch (e) {\n    return requests.map(function (req) {\n      try {\n        return UrlFetchApp.fetch(req.url, req);\n      } catch (err) {\n        return { __error: err };\n      }\n    });\n  }\n}\n\nfunction extractLinks_(html, pageUrl, rootHostKey) {\n  var links = &#91;&#93;;\n  var seen = {};\n  var regex = \/&lt;a\\b&#91;^&gt;&#93;*\\bhref\\s*=\\s*(?:&quot;(&#91;^&quot;&#93;*)&quot;|&#x27;(&#91;^&#x27;&#93;*)&#x27;|(&#91;^\\s&gt;&#93;+))\/ig;\n  var match;\n\n  while ((match = regex.exec(html)) !== null) {\n    var href = decodeHtml_(match&#91;1&#93; || match&#91;2&#93; || match&#91;3&#93; || &#x27;&#x27;);\n    var url = normalizeInternalUrl_(href, pageUrl, rootHostKey);\n\n    if (!url || !isPageUrl_(url)) continue;\n\n    var key = getUrlKey_(url);\n    if (seen&#91;key&#93;) continue;\n\n    seen&#91;key&#93; = true;\n    links.push(url);\n  }\n\n  return links;\n}\n\nfunction normalizeUrl_(url) {\n  url = url.trim();\n  if (!\/^https?:\\\/\\\/\/i.test(url)) {\n    url = &#x27;https:\/\/&#x27; + url;\n  }\n\n  var parts = parseUrl_(url);\n  if (!parts) throw new Error(&#x27;URL\u306e\u5f62\u5f0f\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#x27;);\n\n  return buildUrl_(parts);\n}\n\nfunction normalizeInternalUrl_(href, baseUrl, rootHostKey) {\n  var resolved = resolveUrl_(href, baseUrl);\n  if (!resolved) return &#x27;&#x27;;\n\n  var parts = parseUrl_(resolved);\n  if (!parts) return &#x27;&#x27;;\n\n  if (normalizeHostKey_(parts.host) !== rootHostKey) return &#x27;&#x27;;\n\n  return buildUrl_(parts);\n}\n\nfunction resolveUrl_(href, baseUrl) {\n  if (!href) return &#x27;&#x27;;\n\n  href = href.trim();\n  if (!href || href.charAt(0) === &#x27;#&#x27;) return &#x27;&#x27;;\n  if (\/^(?:mailto|tel|javascript|data|blob|file):\/i.test(href)) return &#x27;&#x27;;\n\n  var base = parseUrl_(baseUrl);\n  if (!base) return &#x27;&#x27;;\n\n  href = href.replace(\/#.*$\/, &#x27;&#x27;).replace(\/\\?.*$\/, &#x27;&#x27;);\n\n  if (\/^https?:\\\/\\\/\/i.test(href)) {\n    return buildUrl_(parseUrl_(href));\n  }\n\n  if (\/^\\\/\\\/\/.test(href)) {\n    return buildUrl_(parseUrl_(base.protocol + &#x27;:&#x27; + href));\n  }\n\n  var path;\n  if (href.charAt(0) === &#x27;\/&#x27;) {\n    path = href;\n  } else {\n    var baseDir = base.path;\n    if (baseDir.charAt(baseDir.length - 1) !== &#x27;\/&#x27;) {\n      baseDir = baseDir.substring(0, baseDir.lastIndexOf(&#x27;\/&#x27;) + 1);\n    }\n    path = baseDir + href;\n  }\n\n  return buildUrl_({\n    protocol: base.protocol,\n    host: base.host,\n    path: normalizePath_(path)\n  });\n}\n\nfunction parseUrl_(url) {\n  var match = String(url || &#x27;&#x27;).trim().replace(\/#.*$\/, &#x27;&#x27;).match(\/^(https?):\\\/\\\/(&#91;^\\\/?#&#93;+)(&#91;^?#&#93;*)\/i);\n  if (!match) return null;\n\n  var path = match&#91;3&#93; || &#x27;\/&#x27;;\n  path = normalizePath_(path);\n  path = path.replace(\/\\\/(?:index|default)\\.(?:html?|php|aspx?)$\/i, &#x27;\/&#x27;);\n\n  return {\n    protocol: match&#91;1&#93;.toLowerCase(),\n    host: normalizeHost_(match&#91;2&#93;),\n    path: path\n  };\n}\n\nfunction buildUrl_(parts) {\n  return parts.protocol + &#x27;:\/\/&#x27; + parts.host + (parts.path || &#x27;\/&#x27;);\n}\n\nfunction normalizeHost_(host) {\n  return String(host || &#x27;&#x27;)\n    .toLowerCase();\n}\n\nfunction normalizeHostKey_(host) {\n  return normalizeHost_(host);\n}\n\nfunction normalizePath_(path) {\n  var input = (path || &#x27;\/&#x27;).replace(\/\\\/{2,}\/g, &#x27;\/&#x27;);\n  var parts = input.split(&#x27;\/&#x27;);\n  var output = &#91;&#93;;\n\n  parts.forEach(function (part) {\n    if (!part || part === &#x27;.&#x27;) return;\n    if (part === &#x27;..&#x27;) {\n      output.pop();\n    } else {\n      output.push(part);\n    }\n  });\n\n  var result = &#x27;\/&#x27; + output.join(&#x27;\/&#x27;);\n  if (input.slice(-1) === &#x27;\/&#x27; &amp;&amp; result !== &#x27;\/&#x27;) result += &#x27;\/&#x27;;\n\n  return result || &#x27;\/&#x27;;\n}\n\nfunction getUrlKey_(url) {\n  var parts = parseUrl_(url);\n  if (!parts) return String(url || &#x27;&#x27;).toLowerCase();\n\n  var path = parts.path;\n  if (path !== &#x27;\/&#x27; &amp;&amp; path.slice(-1) === &#x27;\/&#x27;) {\n    path = path.slice(0, -1);\n  }\n\n  return parts.protocol + &quot;:\/\/&quot; + parts.host + parts.path;\n}\n\nfunction isPageUrl_(url) {\n  var parts = parseUrl_(url);\n  if (!parts) return false;\n\n  var fileName = parts.path.split(&#x27;\/&#x27;).pop();\n  return !CRAWLER.excludedExtensions.test(fileName);\n}\n\nfunction isHtml_(contentType) {\n  if (!contentType) return true;\n  return \/text\\\/html|application\\\/xhtml\\+xml\/i.test(contentType);\n}\n\nfunction getHeader_(headers, name) {\n  var target = name.toLowerCase();\n\n  for (var key in headers) {\n    if (key.toLowerCase() === target) {\n      return String(headers&#91;key&#93;);\n    }\n  }\n\n  return &#x27;&#x27;;\n}\n\nfunction extractTitle_(html) {\n  var match = html.match(\/&lt;title&#91;^&gt;&#93;*&gt;(&#91;\\s\\S&#93;*?)&lt;\\\/title&gt;\/i);\n  if (!match) return &#x27;&#x27;;\n\n  return decodeHtml_(stripTags_(match&#91;1&#93;))\n    .replace(\/\\s+\/g, &#x27; &#x27;)\n    .trim()\n    .substring(0, 500);\n}\n\nfunction stripTags_(text) {\n  return String(text || &#x27;&#x27;).replace(\/&lt;&#91;^&gt;&#93;*&gt;\/g, &#x27;&#x27;);\n}\n\nfunction decodeHtml_(text) {\n  return String(text || &#x27;&#x27;)\n    .replace(\/&amp;\/g, &#x27;&amp;&#x27;)\n    .replace(\/&lt;\/g, &#x27;&lt;&#x27;)\n    .replace(\/&gt;\/g, &#x27;&gt;&#x27;)\n    .replace(\/&quot;\/g, &#x27;&quot;&#x27;)\n    .replace(\/&#x27;\/g, &quot;&#x27;&quot;)\n    .replace(\/&#x27;\/g, &quot;&#x27;&quot;);\n}\n\nfunction createOrClearSheet_(ss, name) {\n  var candidate = name;\n  var n = 1;\n  while (ss.getSheetByName(candidate)) candidate = name + &#x27;_&#x27; + (n++);\n  var sheet = ss.insertSheet(candidate);\n  \/\/ \u65e2\u5b58\u30b7\u30fc\u30c8\u3092\u6d88\u53bb\u305b\u305a\u3001\u65b0\u898f\u30b7\u30fc\u30c8\u3078\u51fa\u529b\u3057\u307e\u3059\u3002\n  return sheet;\n}\n\nfunction styleSheet_(sheet) {\n  sheet.setFrozenRows(1);\n  sheet.getRange(1, 1, 1, 5)\n    .setFontWeight(&#x27;bold&#x27;)\n    .setBackground(&#x27;#e8f0fe&#x27;);\n\n  sheet.setColumnWidths(1, 1, 520);\n  sheet.setColumnWidths(2, 1, 520);\n  sheet.setColumnWidths(3, 2, 90);\n  sheet.setColumnWidths(5, 1, 360);\n}\n\nfunction safeCellText_(value) {\n  var text = String(value == null ? &quot;&quot; : value);\n  return \/^&#91;=+@\\-&#93;\/.test(text) ? &quot;\\&#x27;&quot; + text : text;\n}\n<\/code><\/pre><\/div>\n<h2 class=\"wp-block-heading\">\u5bfe\u8c61\u3068\u4e0a\u9650<\/h2>\n<p class=\"wp-block-paragraph\">\u521d\u671f\u5024\u306f\u6700\u5927100\u30da\u30fc\u30b8\u30011\u30d0\u30c3\u30c15\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u30b5\u30a4\u30c8\u5074\u306e\u8a31\u5bb9\u8ca0\u8377\u3068GAS\u306e\u5229\u7528\u67a0\u3092\u78ba\u8a8d\u3057\u3001\u6700\u521d\u306f\u5c0f\u898f\u6a21\u306a\u5bfe\u8c61\u3067\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u81ea\u52d5\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u8ffd\u308f\u305a\u30013xx\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8a18\u9332\u3057\u3066\u305d\u306e\u5148\u306e\u30ea\u30f3\u30af\u62bd\u51fa\u3092\u6b62\u3081\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u8ee2\u9001\u5148\u3092\u78ba\u8a8d\u3057\u305f\u3046\u3048\u3067\u3001\u5fc5\u8981\u306a\u3089\u8d77\u70b9URL\u3092\u5909\u66f4\u3057\u3066\u518d\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">www\u3042\u308a\u30fb\u306a\u3057\u306f\u5225\u30db\u30b9\u30c8\u3068\u3057\u3066\u6271\u3044\u3001URL\u30ad\u30fc\u306f\u30d1\u30b9\u306e\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3068\u672b\u5c3e\u30b9\u30e9\u30c3\u30b7\u30e5\u3092\u533a\u5225\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u30dd\u30fc\u30c8\u756a\u53f7\u3082\u52dd\u624b\u306b\u524a\u9664\u3057\u307e\u305b\u3093\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3067\u304d\u306a\u3044\u3053\u3068<\/h2>\n<p class=\"wp-block-paragraph\">\u30af\u30a8\u30ea\u6587\u5b57\u5217\u3092\u53d6\u308a\u9664\u304f\u305f\u3081\u3001\u691c\u7d22\u7d50\u679c\u30fb\u30da\u30fc\u30b8\u756a\u53f7\u306a\u3069\u3092\u30af\u30a8\u30ea\u3067\u533a\u5225\u3059\u308b\u30b5\u30a4\u30c8\u306e\u8abf\u67fb\u306b\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002<\/p>\n<p class=\"wp-block-paragraph\">index.html\u306a\u3069\u306e\u65e2\u5b9a\u30d5\u30a1\u30a4\u30eb\u540d\u3068\u30d1\u30b9\u306e\u6b63\u898f\u5316\u3082\u884c\u3046\u7c21\u6613\u5b9f\u88c5\u306a\u306e\u3067\u3001\u7279\u6b8a\u306aURL\u69cb\u6210\u306e\u5b8c\u5168\u306a\u68da\u5378\u3057\u306b\u306f\u5bfe\u5fdc\u3057\u307e\u305b\u3093\u3002<\/p>\n<p class=\"wp-block-paragraph\">robots.txt\u306e\u81ea\u52d5\u5224\u5b9a\u3001JavaScript\u63cf\u753b\u3001base\u8981\u7d20\u3001\u9014\u4e2d\u518d\u958b\u306f\u5b9f\u88c5\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u7d50\u679c\u306f\u7d42\u4e86\u6642\u306b\u307e\u3068\u3081\u3066\u4fdd\u5b58\u3059\u308b\u305f\u3081\u3001\u5b9f\u884c\u6642\u9593\u306e\u4e0a\u9650\u3067\u505c\u6b62\u3059\u308b\u3068\u9014\u4e2d\u7d50\u679c\u304c\u6b8b\u3089\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">fetchAll\u5931\u6557\u6642\u306e\u500b\u5225\u53d6\u5f97\u3082\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u306b\u542b\u307e\u308c\u308b\u306e\u3067\u3001\u4e0a\u9650\u30a8\u30e9\u30fc\u6642\u306b\u9023\u7d9a\u5b9f\u884c\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4fdd\u5b58\u3055\u308c\u308b\u6587\u5b57\u3068\u691c\u8a3c\u7bc4\u56f2<\/h2>\n<p class=\"wp-block-paragraph\">\u30bf\u30a4\u30c8\u30eb\u5148\u982d\u306e\u6570\u5f0f\u8a18\u53f7\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u3001\u53d6\u5f97\u5148\u306e\u30bf\u30a4\u30c8\u30eb\u304c\u6570\u5f0f\u3068\u3057\u3066\u8a55\u4fa1\u3055\u308c\u308b\u3053\u3068\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">Node.js\u306e\u6a21\u64ecGAS\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u3001\u65b0\u898f\u30b7\u30fc\u30c8\u4f5c\u6210\u3001URL\u6bd4\u8f03\u3001\u8ee2\u9001\u6291\u6b62\u3001\u30bf\u30a4\u30c8\u30eb\u306e\u6587\u5b57\u5217\u5316\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306eGoogle\u8a8d\u8a3c\u3001\u5b9f\u30b7\u30fc\u30c8\u3078\u306e\u4fdd\u5b58\u3001\u5bfe\u8c61\u30b5\u30fc\u30d0\u30fc\u306e\u5fdc\u7b54\u3001GAS\u306e\u5229\u7528\u67a0\u306f\u672a\u691c\u8a3c\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u524d\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b3\u30d4\u30fc\u3057\u3066\u4fdd\u5b58\u3057\u3001\u554f\u984c\u304c\u3042\u308c\u3070\u305d\u306e\u30b3\u30d4\u30fc\u3078\u623b\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u53c2\u7167\uff1a<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/spreadsheet\/range#setvaluesvalues\">setValues<\/a>\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/services\/quotas\">Apps Script\u306e\u5229\u7528\u67a0<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GAS\u3067\u3001\u6307\u5b9aURL\u304b\u3089\u898b\u3064\u304b\u308b\u540c\u3058\u30db\u30b9\u30c8\u5185\u306eHTML\u30ea\u30f3\u30af\u3092\u305f\u3069\u308a\u3001URL\u30fb\u53c2\u7167\u5143\u30fb\u6df1\u3055\u30fbHTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30fb\u30bf\u30a4\u30c8\u30eb\u3092\u30b7\u30fc\u30c8\u3078\u51fa\u529b\u3059\u308b\u7c21\u6613\u30af\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002 \u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4e00\u89a7\u3084\u30b5\u30a4\u30c8\u306e\u5168\u30da\u30fc\u30b8\u4e00\u89a7\u3092\u4fdd\u8a3c\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":27878,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"Google Apps Script\u2502\u30b5\u30a4\u30c8\u5185\u30ea\u30f3\u30af\u3092\u4e00\u62ec\u30af\u30ed\u30fc\u30eb\u3057\u3066\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u51fa\u529b\u3059\u308b","ssp_meta_description":"GAS\u3067\u30b5\u30a4\u30c8\u5185URL\u3092\u30b7\u30fc\u30c8\u3078\u4e00\u89a7\u5316\u3059\u308b\u7c21\u6613\u4f8b\u3002\u65e2\u5b58\u30b7\u30fc\u30c8\u3092\u6d88\u53bb\u305b\u305a\u3001\u6570\u5f0f\u5316\u3092\u9632\u304e\u3001\u8ee2\u9001\u3092\u8ffd\u308f\u305a\u8a18\u9332\u3057\u307e\u3059\u3002"},"categories":[83],"tags":[],"area":[],"class_list":["post-27867","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=27867"}],"version-history":[{"count":5,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27867\/revisions"}],"predecessor-version":[{"id":29919,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27867\/revisions\/29919"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/27878"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=27867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=27867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=27867"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=27867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}