<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rsky</author_name>
  <author_url>https://blog.hatena.ne.jp/rsky/</author_url>
  <blog_title>讃容日記</blog_title>
  <blog_url>https://blog.r-sky.jp/</blog_url>
  <categories>
    <anon>出稼ぎ</anon>
    <anon>Python</anon>
  </categories>
  <description>突然 Planet で収集・再構築したフィードが XML の構文エラーでパースできない事態が発生。 問題の行を1文字ずつダンプして調べてみたところ、0x03 (ETX/テキスト終了) が紛れ込んでいました。UTF-8 としては ETX を含んでいても問題無いが、well-formed な XML としてはダメらしいのですね。 そこで TAB,CR,LF 以外の制御文字を削除するように planet/cache.py を修正。(差分には EUC/SJIS 対応も含んでいます) ETX を含んでいたフィードのキャッシュを削除した後、planet.py を再実行すると、問題なくパースできるようになり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.r-sky.jp%2Fentry%2F20060602%2Fp1&quot; title=&quot; Planet をプチ修正 - 讃容日記&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>2006-06-02 00:00:00</published>
  <title> Planet をプチ修正</title>
  <type>rich</type>
  <url>https://blog.r-sky.jp/entry/20060602/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
