<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>utgwkk</author_name>
  <author_url>https://blog.hatena.ne.jp/utgwkk/</author_url>
  <blog_title>私が歌川です</blog_title>
  <blog_url>https://blog.utgw.net/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>後述するサイトの情報を参考にしたら、割とすんなり動きました。 ただ、やや動作に難があったり、エンコード沼にはまりそうになったりして、工夫してコードを書かないといけなかったので、大変でした。 MeCab.Tagger.parseToNode(str) が正常に動作しない str(res.surface.encode())と書かないと単語が取得できなかったり、res.surfaceが取得できなかったりと、動作が不安定です。 結局、MeCab.Tagger.parse(str)を行ごとにforで回してデータを取得するようにしました。 コード # coding=utf-8 def is575(text…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2015%2F09%2F06%2F215017&quot; title=&quot;Python3.4.3でMeCabの導入に成功したので、入力文字列が575かどうか判定するスクリプトを書いた - 私が歌川です&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-06 21:50:17</published>
  <title>Python3.4.3でMeCabの導入に成功したので、入力文字列が575かどうか判定するスクリプトを書いた</title>
  <type>rich</type>
  <url>https://blog.utgw.net/entry/2015/09/06/215017</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
