<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fysker</author_name>
  <author_url>https://blog.hatena.ne.jp/fysker/</author_url>
  <blog_title>望月の息抜き</blog_title>
  <blog_url>https://fullmoons-breather.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>プログラミング</anon>
    <anon>ライブラリ</anon>
  </categories>
  <description>【記事の目標】 PythonでWebページの情報を取得する。 【作業手順】 １．requestsをインポート ２．Webページを取得しよう ３．取得した情報をコンソールに出力してみよう １．requestsをインポート 今回はpythonの標準ライブラリのrequestsを利用するため、インストールは不要です。 以下のように記載し、インポートしましょう。 import requests これで、requestsが利用できるようになりました。 ２．Webページを取得しよう ここからが本題です。実際にWebページを取得してみましょう。 今回は皆さんがよく目にしているGoogleのトップページを取得…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffullmoons-breather.hatenadiary.jp%2Fentry%2F2022%2F01%2F02%2F005119&quot; title=&quot;【Python】【5】Webページを取得してみよう - 望月の息抜き&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>https://cdn-ak.f.st-hatena.com/images/fotolife/f/fysker/20220102/20220102003031.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-01-02 00:51:19</published>
  <title>【Python】【5】Webページを取得してみよう</title>
  <type>rich</type>
  <url>https://fullmoons-breather.hatenadiary.jp/entry/2022/01/02/005119</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
