<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fgshun</author_name>
  <author_url>https://blog.hatena.ne.jp/fgshun/</author_url>
  <blog_title>銀月の符号</blog_title>
  <blog_url>https://fgshun.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>HTML 文章を情報源としてデータを構築するときのお供に、 BeautifulSoup 。やはり便利。 テキストに変換 HTML 文章を強引にプレーンテキストに直してみる。 soup2string 呼び出し可能オブジェクト。 &gt;&gt;&gt; from BeautifulSoup import BeautifulSoup &gt;&gt;&gt; html = '&lt;html&gt;&lt;body&gt;&lt;p&gt;aaa&lt;br /&gt;bbb&lt;a href=&quot;spam.html&quot;&gt;ccc&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;' &gt;&gt;&gt; soup = BeautifulSoup(html) &gt;&gt;&gt; soup2string(soup.p) u'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffgshun.hatenablog.com%2Fentry%2F20090605%2F1244210865&quot; title=&quot; BeautifulSoup と戯れる - 銀月の符号&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>2009-06-05 23:07:45</published>
  <title> BeautifulSoup と戯れる</title>
  <type>rich</type>
  <url>https://fgshun.hatenablog.com/entry/20090605/1244210865</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
