{"author_url":"https://blog.hatena.ne.jp/Wojtek/","published":"2022-06-09 21:56:07","categories":[],"blog_url":"https://wojtek.hatenablog.com/","author_name":"Wojtek","image_url":null,"provider_url":"https://hatena.blog","version":"1.0","url":"https://wojtek.hatenablog.com/entry/2022/06/09/215607","type":"rich","title":"\u3010GAS\u3011UrlFetchApp.fetch\u3092\u4f7f\u3063\u3066Web\u30b5\u30a4\u30c8\u306e\u4e2d\u8eab\u3092\u53d6\u5f97\u3059\u308b","height":"190","blog_title":"\u6c17\u307e\u307e\u306aUnity\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwojtek.hatenablog.com%2Fentry%2F2022%2F06%2F09%2F215607\" title=\"\u3010GAS\u3011UrlFetchApp.fetch\u3092\u4f7f\u3063\u3066Web\u30b5\u30a4\u30c8\u306e\u4e2d\u8eab\u3092\u53d6\u5f97\u3059\u308b - \u6c17\u307e\u307e\u306aUnity\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","description":"UrlFetchApp.fetch\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u6307\u5b9a\u3057\u305fWeb\u30b5\u30a4\u30c8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002 GAS\u3092\u8d77\u52d5\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u51e6\u7406\u3092\u8a18\u8f09\u3044\u305f\u3057\u307e\u3059\u3002 function GetSelectURLContent(url) { var html = \"\"; try { html = UrlFetchApp.fetch(url).getContentText(); } catch (ex) { Logger.log(\"ex message {%s}\",ex); return null; } return html; } try catch\u3092\u4f7f\u7528\u3057\u3066 Web\u30b5\u30a4\u30c8\u306e\u60c5\u5831\u304c\u6b63\u5e38\u306b\u53d6\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u2026"}