{"id":170,"date":"2016-04-26T19:55:31","date_gmt":"2016-04-26T10:55:31","guid":{"rendered":"http:\/\/blog.homirun.pw\/?p=170"},"modified":"2016-04-26T19:55:31","modified_gmt":"2016-04-26T10:55:31","slug":"openweathermap%e3%81%a8python3%e3%81%a7%e6%b0%97%e8%b1%a1%e6%83%85%e5%a0%b1%e3%82%92%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/blog.homi.run\/?p=170","title":{"rendered":"OpenWeatherMap\u3068Python3\u3067\u6c17\u8c61\u60c5\u5831\u3092\u53d6\u5f97"},"content":{"rendered":"<p>\u6c17\u8c61\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u308b<a href=\"http:\/\/openweathermap.org\/\">OpenWeatherMap<\/a>\u3068\u3044\u3046Web\u30b5\u30fc\u30d3\u30b9\u3042\u308b\u3089\u3057\u3044\u306e\u3067\u305d\u308c\u3092\u4f7f\u3063\u3066\u904a\u3093\u3067\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>OpenWeatherMap\u306f\u3001\u4e16\u754c\u306e\u6c17\u8c61\u60c5\u5831\u304c\u7121\u6599\u3067\u63d0\u4f9b\u3055\u308c\u3066\u304a\u308a\u5546\u696d\u5229\u7528\u3082\u3067\u304d\u308bWeb\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p>\u5229\u7528\u306b\u306f\u6700\u521d\u306bAPI\u30ad\u30fc\u306e\u53d6\u5f97\u3092\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p>API\u30ad\u30fc\u306fOpenWeatherMap\u306e\u30b5\u30a4\u30c8\u304b\u3089\u767b\u9332\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/home.openweathermap.org\/users\/sign_up\">https:\/\/home.openweathermap.org\/users\/sign_up<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u53d6\u5f97\u3057\u305fAPI\u30ad\u30fc\u306fURL\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u5165\u308c\u307e\u3059\u3002<\/p>\n<p>\u6c17\u8c61\u60c5\u5831\u306fjson\u5f62\u5f0f\u3001XML\u5f62\u5f0f\u3001HTML\u5f62\u5f0f\u306e\uff13\u3064\u304b\u3089\u9078\u3079\u307e\u3059\u3002<\/p>\n<p>\u6307\u5b9a\u65b9\u6cd5\u306fURL\u30d1\u30e9\u30e1\u30fc\u30bf\u306e&#8221;mode&#8221;\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6c17\u8c61\u60c5\u5831\u3092\u53d6\u5f97\u3057\u305f\u3044\u90fd\u5e02\u3082URL\u30d1\u30e9\u30e1\u30fc\u30bf\u306e&#8221;q&#8221;\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u306e\u30bd\u30fc\u30b9\u3067\u306f\u6771\u4eac\u306e\u5929\u6c17\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081&#8221;tokyo&#8221;\u306b\u3057\u3066\u3044\u307e\u3059<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><script src=\"https:\/\/gist.github.com\/homirun\/6ca0a7e6a18cfd1fc82b6d7540676316.js\"><\/script><\/p>\n<p>\u30bd\u30fc\u30b9\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u5929\u6c17\u306e\u4ed6\u306b\u6c17\u6e29\u3001\u6e7f\u5ea6\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5929\u6c17\u306e\u5224\u5b9a\u306fOpenWeatherMap\u306e\u65b9\u3067\u7528\u610f\u3055\u308c\u3066\u308b\u5929\u6c17\u306e\u30a2\u30a4\u30b3\u30f3\uff08\u66c7\u3060\u3063\u305f\u3089\u96f2\u306e\u7d75\u3068\u304b\uff09\u304c\u3042\u308a\u305d\u308c\u306b\u632f\u3089\u308c\u3066\u3044\u308bID\u3067\u5224\u5225\u3057\u3066\u307f\u307e\u3057\u305f<\/p>\n<p>if\u4e26\u3079\u307e\u304f\u3063\u3066\u3066\u975e\u5e38\u306b\u30a2\u30bf\u30de\u304c\u60aa\u3044\u3067\u3059\u304c\u6c17\u306b\u3057\u306a\u3044\uff08\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>OpenWeatherMap\u3068Python\u3001\u30e9\u30ba\u30d1\u30a4\u3092\u4f7f\u3063\u3066\u5353\u4e0a\u5929\u6c17\u4e88\u5831\u307f\u305f\u3044\u306a\u306e\u3082\u3092\u4f5c\u308c\u305d\u3046\u3067\u3059\u306d\uff08\u30e9\u30ba\u30d1\u30a4\u307b\u3057\u3044\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u6700\u5f8c\u306bPython\u3067\u578b\u3092\u660e\u793a\u7684\u306b\u5ba3\u8a00\u3057\u305f\u5909\u6570\u3063\u3066\u4f5c\u308c\u306a\u3044\u3093\u3067\u3059\u304b\u306d\u3047\u3068\u66f8\u3044\u3066\u3066\u601d\u3044\u307e\u3057\u305f\u3002()<\/p>\n<p>\u4ee5\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6c17\u8c61\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u308bOpenWeatherMap\u3068\u3044\u3046Web\u30b5\u30fc\u30d3\u30b9\u3042\u308b\u3089\u3057\u3044\u306e\u3067\u305d\u308c\u3092\u4f7f\u3063\u3066\u904a\u3093\u3067\u307f\u307e\u3057\u305f\u3002 OpenWeatherMap\u306f\u3001\u4e16\u754c\u306e\u6c17\u8c61\u60c5\u5831\u304c\u7121\u6599\u3067\u63d0\u4f9b\u3055\u308c\u3066\u304a\u308a\u5546\u696d\u5229\u7528\u3082\u3067\u304d\u308bWeb\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002 \u5229 &hellip; <a href=\"https:\/\/blog.homi.run\/?p=170\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;OpenWeatherMap\u3068Python3\u3067\u6c17\u8c61\u60c5\u5831\u3092\u53d6\u5f97&#8221;\u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-6"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=170"}],"version-history":[{"count":0,"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts\/170\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}