{"id":53794,"date":"2018-05-21T19:40:21","date_gmt":"2018-05-21T10:40:21","guid":{"rendered":"https:\/\/www.sejuku.net\/blog\/?p=53794"},"modified":"2024-05-06T11:47:39","modified_gmt":"2024-05-06T02:47:39","slug":"%e3%80%90python%e5%85%a5%e9%96%80%e3%80%91requests%e3%81%a7web%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%8b%e3%82%89%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e5%8f%96%e5%be%97%e3%81%97%e3%81%a6%e3%81%bf","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/53794","title":{"rendered":"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<p><div class=\"box_voice\">Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u306e\uff1f<br \/>\nRequests\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u3044\u65b9\u304c\u77e5\u308a\u305f\u3044<\/div><\/p>\n<p>\u307f\u306a\u3055\u3093\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3067\u78ba\u8a8d\u3067\u304d\u308b\u60c5\u5831\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u6271\u3044\u305f\u3044\u3068\u601d\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u305f\u3068\u3048\u3070\u3001\u304a\u6c17\u306b\u5165\u308a\u306e\u30b5\u30a4\u30c8\u306b\u65b0\u7740\u8a18\u4e8b\u304c\u3067\u305f\u3089\u77e5\u308a\u305f\u3044\u3001\u304a\u6c17\u306b\u5165\u308a\u306e\u753b\u50cf\u3092\u53ce\u96c6\u3057\u305f\u3044\u306a\u3069\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f\u3001Requests\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u753b\u50cf\u3092\u53d6\u5f97\u3057\u305f\u308a\u3059\u308b\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><b>Requests\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5fdc\u7528\u3059\u308c\u3070\u300c\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u300d\u3084\u300c\u30af\u30ed\u30fc\u30ea\u30f3\u30b0\u300d\u3082\u884c\u3048\u307e\u3059<\/b>\u3002\u4eca\u56de\u306f\u305d\u308c\u3089\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>\u306a\u304a\u3001Python\u306e\u8a18\u4e8b\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/www.sejuku.net\/blog\/147190\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Python\u306eRequests\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u306f<\/h2>\n<p>Requests\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001Web\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<\/p>\n<p>Web\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306a\u3089\u3001Python\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308burllib2\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3082\u53ef\u80fd\u3067\u3059\u3002\u3057\u304b\u3057\u3001urllib2\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u4e01\u5be7\u306b\u624b\u7d9a\u304d\u3092\u8e0f\u3093\u3067\u3044\u304f\uff08\u6614\u306a\u304c\u3089\u306e\uff09\u4f5c\u6cd5\u3067\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u3001Python\u3089\u3057\u304f\u306a\u3044\u3068\u8003\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001Python\u3089\u3057\u304fWeb\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u3001Requests\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u958b\u767a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h2>Requests\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001Requests\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u65e9\u901fWeb\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3068\u8a00\u3063\u3066\u3082\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"decode:true \">pip install requests<\/pre>\n<p>\u3069\u3093\u3069\u3093\u9032\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>Requests\u30e9\u30a4\u30d6\u30e9\u30ea\u3067Web\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<h3>HTML\u3092\u53d6\u5f97\u3059\u308b<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3001HTML\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>2\u3064\u306e\u65b9\u6cd5\u3067HTML\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"decode:true \">import requests\r\n\r\nr = requests.get('https:\/\/www.yahoo.co.jp')\r\n\r\nwith open(\"test-text.html\", \"wb\") as f:\r\n    f.write(r.text.encode(r.encoding))\r\n\r\nwith open(\"test-content.html\", \"wb\") as f:\r\n    f.write(r.content)<\/pre>\n<p>\u521d\u3081\u306b\u4fdd\u5b58\u3057\u305ftest-text.html\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u5f62\u5f0f\u306er.text\u3092\u4fdd\u5b58\u3057\u305f\u30c7\u30fc\u30bf\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u51fa\u529b\u3059\u308b\u969b\u306f\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u6587\u5b57\u5316\u3051\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u3001encoding\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u8abf\u3079\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u4fdd\u5b58\u3057\u305ftest-content.html\u306f\u3001\u30d0\u30a4\u30ca\u30ea\u5f62\u5f0f\u306er.content\u3092\u4fdd\u5b58\u3057\u305f\u30c7\u30fc\u30bf\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u753b\u50cf\u3092\u53d6\u5f97\u3059\u308b<\/h3>\n<p>\u7d9a\u3044\u3066\u3001\u753b\u50cf\u306e\u4fdd\u5b58\u65b9\u6cd5\u3082\u7d39\u4ecb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"decode:true \">import requests\r\n\r\n# get\u306e\u5f15\u6570\u306b\u306f\u597d\u304d\u306a\u753b\u50cf\u306eURL\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002\r\n# \u4ee5\u4e0b\u306f\u4f8d\u306e\u30ed\u30b4\u753b\u50cf\u306eURL\u3067\u3059\u3002\r\nr = requests.get('https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/voice_logo.png')\r\n\r\nwith open(\"voice_logo.png\", \"wb\") as f:\r\n    f.write(r.content)<\/pre>\n<h3>\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u3082\u884c\u3046<\/h3>\n<p>\u3068\u3053\u308d\u3067\u3001URL\u3092\u8aa4\u3063\u305f\u5834\u5408\u3084Web\u30b5\u30fc\u30d0\u30fc\u304c\u5fdc\u7b54\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306f\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u5b9f\u9a13\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"decode:true \">import requests\r\n\r\nr = requests.get('https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/voice_logo_NG.png')\r\n\r\nwith open(\"voice_logo_NG.png\", \"wb\") as f:\r\n    f.write(r.content)<\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u7121\u4e8b\u306bvoice_logo_NG.png\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u96a0\u3057\u753b\u50cf\u3067\u3082\u898b\u3064\u304b\u3063\u305f\u304b\uff01\uff1f\u3068Windows\u6a19\u6e96\u306e\u30da\u30a4\u30f3\u30c8\u3067\u958b\u3044\u3066\u307f\u308b\u3068\u2026\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-53801\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request01.png\" alt=\"python-request01\" width=\"409\" height=\"172\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request01.png 409w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request01-150x63.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request01-300x126.png 300w\" sizes=\"(max-width: 409px) 100vw, 409px\" \/><\/p>\n<p>\u3042\u308c\uff1f\uff1f\u3068\u601d\u3063\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u898b\u3066\u307f\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"decode:true \">&lt;!DOCTYPE html&gt;\r\n&lt;!--[if IE 8]&gt;&lt;html class=\"ie8\"&gt;&lt;![endif]--&gt;\r\n&lt;!--[if IE 9]&gt;&lt;html class=\"ie9\"&gt;&lt;![endif]--&gt;\r\n&lt;!--[if gt IE 8]&gt;&lt;!--&gt; &lt;html lang=\"ja\"\r\n    itemscope\r\n    itemtype=\"http:\/\/schema.org\/WebSite\"\r\n    prefix=\"og: http:\/\/ogp.me\/ns#\" &gt; &lt;!--&lt;![endif]--&gt;\r\n\r\n&lt;head prefix=\"og: http:\/\/ogp.me\/ns# fb: http:\/\/ogp.me\/ns\/fb# article: http:\/\/ogp.me\/ns\/article#\"&gt;\r\n    &lt;!-- Comment --&gt;\r\n&lt;!-- Google Tag Manager --&gt;\r\n\uff08\u7701\u7565\uff09<\/pre>\n<p>\u3053\u308c\u306fHTML\u30c7\u30fc\u30bf\u3067\u3059\u306d\u2026\u3002<\/p>\n<p>\u305f\u3081\u3057\u306b\u30d6\u30e9\u30a6\u30b6\u3067\u300chttps:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/voice_logo_NG.png\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-53803\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request02.png\" alt=\"python-request02\" width=\"1615\" height=\"923\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request02.png 1615w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request02-150x86.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request02-300x171.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request02-640x366.png 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request02-810x463.png 810w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python-request02-1140x652.png 1140w\" sizes=\"(max-width: 1615px) 100vw, 1615px\" \/><\/p>\n<p>\u306a\u308b\u307b\u3069\u3001404\u30a8\u30e9\u30fc\u306e\u30da\u30fc\u30b8\u304c\u8fd4\u3055\u308c\u305f\u306e\u3067\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u3057\u307e\u3063\u305f\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3001HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"decode:true \">import requests\r\n\r\nr = requests.get('https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/voice_logo_NG.png')\r\n\r\ntry:\r\n    r.raise_for_status()\r\n\r\n    with open(\"voice_logo_NG.png\", \"wb\") as f:\r\n        f.write(r.content)\r\nexcept requests.exceptions.HTTPError:\r\n    print(\"Web\u30b5\u30fc\u30d0\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002\")<\/pre>\n<p>\u5148\u307b\u3069\u306e\u30b3\u30fc\u30c9\u306b\u3001r.raise_for_status()\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c200\u756a\u53f0\u4ee5\u5916\u306e\u3068\u304d\u306b\u4f8b\u5916\u3092\u767a\u751f\u3055\u305b\u307e\u3059\u306e\u3067\u3001try-except\u3067\u4f8b\u5916\u3092\u51e6\u7406\u3059\u308b\u65b9\u91dd\u3067\u3059\u3002<\/p>\n<h3>\u305d\u306e\u4ed6\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u65b9\u6cd5\u306f\uff1f<\/h3>\n<p>\u3053\u3053\u307e\u3067\u3067\u3001Web\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u901a\u4fe1\u306frequests.get()\u3057\u304b\u4f7f\u3063\u3066\u3044\u307e\u305b\u3093\u3002requests.get()\u306f\u3001\u305d\u306e\u540d\u306e\u3068\u304a\u308aHTTP\u901a\u4fe1\u306eGET\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>HTTP\u901a\u4fe1\u306b\u306f\u3001GET\u306e\u307b\u304b\u306b\u3001POST\u3001PUT\u3001DELETE\u3001HEAD\u3001OPTIONS\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066Requests\u306b\u3082\u3001\u305d\u308c\u305e\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u30e1\u30bd\u30c3\u30c9\uff08post()\u3001put()\u3001delete()\u3001head()\u3001options()\uff09\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001HTTP\u901a\u4fe1\u3067\u3067\u304d\u308b\u3053\u3068\u306f\u3059\u3079\u3066\u3067\u304d\u308b\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u89e3\u6790\u3059\u308b<\/h2>\n<p>Requests\u3067\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\uff08r.content\uff09\u304cHTML\u30c7\u30fc\u30bf\u306e\u5834\u5408\u306f\u3001\u4e2d\u8eab\u3092\u89e3\u6790\u3057\u3066\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002\u3057\u304b\u3057\u6b8b\u5ff5\u306a\u304c\u3089\u3001HTML\u30c7\u30fc\u30bf\u306e\u89e3\u6790\u306fRequests\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5b88\u5099\u7bc4\u56f2\u3092\u8d85\u3048\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4ed6\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u79c1\u306f\u3001BeautifulSoup\u3092\u4f7f\u3046\u3053\u3068\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002<\/p>\n<p>Requests\u3068BeautifulSoup\u3092\u4f7f\u3063\u3066HTML\u30c7\u30fc\u30bf\u3092\u89e3\u6790\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u6b21\u306f\u3053\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff01<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/51241\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/07\/python-web-sc-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011Python\u3067Web\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3092\u3057\u3066\u307f\u3088\u3046\uff01\u624b\u9806\u307e\u3068\u3081<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2025\u5e744\u670823\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u3001Requests\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001HTML\u30c7\u30fc\u30bf\u3068\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u305f\u3064\u3082\u308a\u304c\u3001HTML\u30c7\u30fc\u30bf\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308a\u3001\u305d\u308c\u3092\u5224\u5225\u3059\u308b\u305f\u3081\u306bHTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u3082\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u304cRequests\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u57fa\u672c\u4e2d\u306e\u57fa\u672c\u3067\u3059\u306e\u3067\u3001\u3053\u3053\u307e\u3067\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u3066\u3001\u306a\u3093\u3068\u7c21\u5358\u306a\u3053\u3068\u304b\uff01\u3068\u601d\u3063\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u306e\uff1f Requests\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u3044\u65b9\u304c\u77e5\u308a\u305f\u3044 \u307f\u306a\u3055\u3093\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3067\u78ba\u8a8d\u3067\u304d\u308b\u60c5\u5831\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u6271\u3044\u305f\u3044\u3068\u601d\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u305f\u3068\u3048\u3070\u3001\u304a [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":97152,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2350],"tags":[49],"class_list":["post-53794","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-study","tag-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/53794\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/53794\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-21T10:40:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:47:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python_req.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"810\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9\",\"datePublished\":\"2018-05-21T10:40:21+00:00\",\"dateModified\":\"2024-05-06T02:47:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794\"},\"wordCount\":116,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/python_req.jpg\",\"keywords\":[\"python\"],\"articleSection\":[\"Python\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794\",\"name\":\"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/python_req.jpg\",\"datePublished\":\"2018-05-21T10:40:21+00:00\",\"dateModified\":\"2024-05-06T02:47:39+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/python_req.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/python_req.jpg\",\"width\":810,\"height\":460},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/53794#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/53794","og_locale":"ja_JP","og_type":"article","og_title":"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/53794","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2018-05-21T10:40:21+00:00","article_modified_time":"2024-05-06T02:47:39+00:00","og_image":[{"width":810,"height":460,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python_req.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/53794#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/53794"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9","datePublished":"2018-05-21T10:40:21+00:00","dateModified":"2024-05-06T02:47:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/53794"},"wordCount":116,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/53794#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python_req.jpg","keywords":["python"],"articleSection":["Python\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/53794","url":"https:\/\/www.sejuku.net\/blog\/53794","name":"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/53794#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/53794#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python_req.jpg","datePublished":"2018-05-21T10:40:21+00:00","dateModified":"2024-05-06T02:47:39+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/53794#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/53794"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/53794#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python_req.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/05\/python_req.jpg","width":810,"height":460},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/53794#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Python\u3067Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\uff1fRequests\u306e\u4f7f\u3044\u65b9"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/53794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=53794"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/53794\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/97152"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=53794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=53794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=53794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}