<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hidehara</author_name>
  <author_url>https://blog.hatena.ne.jp/hidehara/</author_url>
  <blog_title>AWS / PHP / Python ちょいメモ</blog_title>
  <blog_url>https://hideharaaws.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>TIPS</anon>
  </categories>
  <description>Python で Beautiful Soup 4.4.0 を使った時に遭遇した問題。stackoverflow でも取り上げられていて、取り敢えずは 4.3.2 に戻すことで対処しました。 python - Beautiful Soup Not able to get_text after using extract() - Stack Overflow 環境 Ubuntu 14.4 Python 2.7.6 問題点 次のようなコードで、html中からscriptタグを除去していたところ 4.0 の環境でおかしな動作が起きた。 soup = BeautifulSoup(page_html, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhideharaaws.hatenablog.com%2Fentry%2F2015%2F09%2F24%2F232607&quot; title=&quot;Beautiful Soup 4.4.0 で extract() を使うとDOM treeが壊れる？ - AWS / PHP / 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>2015-09-24 23:26:07</published>
  <title>Beautiful Soup 4.4.0 で extract() を使うとDOM treeが壊れる？</title>
  <type>rich</type>
  <url>https://hideharaaws.hatenablog.com/entry/2015/09/24/232607</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
