<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmg1998</author_name>
  <author_url>https://blog.hatena.ne.jp/tmg1998/</author_url>
  <blog_title>TIL</blog_title>
  <blog_url>https://tmg0525.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>レスポンスのHTTPステータスコードの確認を行うにはstatus_codeプロパティを使う。 &gt;&gt;&gt; import requests &gt;&gt;&gt; res = requests.get('https://www.google.co.jp') &gt;&gt;&gt; res.status_code 200 また、結果の確認で使えるようなコードもある requests.codes.okなど 参考文献 Quickstart — Requests 2.18.4 documentation</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftmg0525.hatenadiary.jp%2Fentry%2F2018%2F03%2F26%2F213453&quot; title=&quot;レスポンスのHTTPステータスコードの確認 - requests - TIL&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>2018-03-26 21:34:53</published>
  <title>レスポンスのHTTPステータスコードの確認 - requests</title>
  <type>rich</type>
  <url>https://tmg0525.hatenadiary.jp/entry/2018/03/26/213453</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
