<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>karupoimou</author_name>
  <author_url>https://blog.hatena.ne.jp/karupoimou/</author_url>
  <blog_title>なろう分析記録</blog_title>
  <blog_url>https://karupoimou.hatenablog.com/</blog_url>
  <categories>
    <anon>ネット小説サイト分析</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>Pythonスクレイピング webページから特定の要素を抜き取ってくる手法。 pythonを使うと簡単に使える。 サンプルコード import requests from bs4 import BeautifulSoup # URLの指定 url = &quot;https://yomou.syosetu.com/rank/list/type/daily_total/&quot; #ユーザーエージェントの設定 headers = {&quot;User-Agent&quot;: &quot;Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0&quot;} # URLに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkarupoimou.hatenablog.com%2Fentry%2F2019%2F04%2F28%2F064159&quot; title=&quot;Pythonスクレイピングを使って『小説家になろう』のランキングからテキストデータを取得するサンプルコード - なろう分析記録&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>2019-04-28 06:41:59</published>
  <title>Pythonスクレイピングを使って『小説家になろう』のランキングからテキストデータを取得するサンプルコード</title>
  <type>rich</type>
  <url>https://karupoimou.hatenablog.com/entry/2019/04/28/064159</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
