<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Wojtek</author_name>
  <author_url>https://blog.hatena.ne.jp/Wojtek/</author_url>
  <blog_title>気ままなUnityエンジニアブログ</blog_title>
  <blog_url>https://wojtek.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>UrlFetchApp.fetch関数を使用して、指定したWebサイトのコンテンツデータを取得してみましょう。 GASを起動して、以下の処理を記載いたします。 function GetSelectURLContent(url) { var html = &quot;&quot;; try { html = UrlFetchApp.fetch(url).getContentText(); } catch (ex) { Logger.log(&quot;ex message {%s}&quot;,ex); return null; } return html; } try catchを使用して Webサイトの情報が正常に取れなかった場合…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwojtek.hatenablog.com%2Fentry%2F2022%2F06%2F09%2F215607&quot; title=&quot;【GAS】UrlFetchApp.fetchを使ってWebサイトの中身を取得する - 気ままなUnityエンジニアブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-09 21:56:07</published>
  <title>【GAS】UrlFetchApp.fetchを使ってWebサイトの中身を取得する</title>
  <type>rich</type>
  <url>https://wojtek.hatenablog.com/entry/2022/06/09/215607</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
