<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>torasenriwohashiru</author_name>
  <author_url>https://blog.hatena.ne.jp/torasenriwohashiru/</author_url>
  <blog_title>TorasenLab@はてな</blog_title>
  <blog_url>https://torasenriwohashiru.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>テキスト</anon>
  </categories>
  <description>Web上のHTMLテキストには不正な(malformed)形式を持っている場合があります。 malformedなHTMLテキストにに対してはBeautifulSoupやHTMLParserなどがうまく機能しません。 例えば以下の3つのパターンはBeautifulSoupでは例外が生じます。 1. タグの閉じ&gt;が無い &lt;div class=&quot;invalid_start_tag&quot; &lt;a src=&quot;http://...&quot;&gt;something&lt;/a&gt; &lt;/div&gt; 2. 閉じタグに属性がある &lt;/div class=&quot;invalid_end_tag&quot;&gt; 3. scriptタグ中に閉じタグがある &lt;sc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorasenriwohashiru.hatenadiary.org%2Fentry%2F20110402%2F1301672215&quot; title=&quot;不正な(malformed)HTMLテキストを修正する - TorasenLab@はてな&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>2011-04-02 00:36:55</published>
  <title>不正な(malformed)HTMLテキストを修正する</title>
  <type>rich</type>
  <url>https://torasenriwohashiru.hatenadiary.org/entry/20110402/1301672215</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
