<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ni66ling</author_name>
  <author_url>https://blog.hatena.ne.jp/ni66ling/</author_url>
  <blog_title>どこでも見れるメモ帳</blog_title>
  <blog_url>https://ni66ling.hatenadiary.jp/</blog_url>
  <categories>
    <anon>本文抽出</anon>
    <anon>evernote</anon>
    <anon>ruby</anon>
  </categories>
  <description>はじめに EvernoteのWebクリッピング機能便利ですね。 それと同じようなことを自前でできないか試してみました。 方針 Webページに対する本文抽出は、こちらのモジュールを利用*1 上記モジュールは、HTMLタグもすべて取っ払うため、HTMLタグは残すように修正*2 処理対象のWebページについて、文字コードがマチマチで落ちるので、例外処理を追加 試してみる 上の方針に従って、スクリプト作成しました。 github.com ruby*3が入っていれば、git cloneして以下を実行すれば、Webクリッピングできるはずです。 ruby web_clip.rb [URL] ちなみに、先頭画…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fni66ling.hatenadiary.jp%2Fentry%2F2016%2F05%2F31%2F164140&quot; title=&quot;EvernoteのWebクリッピング的な本文抽出を自前で行うには？ - どこでも見れるメモ帳&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>http://cdn-ak.f.st-hatena.com/images/fotolife/n/ni66ling/20160531/20160531161149.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-31 16:41:40</published>
  <title>EvernoteのWebクリッピング的な本文抽出を自前で行うには？</title>
  <type>rich</type>
  <url>https://ni66ling.hatenadiary.jp/entry/2016/05/31/164140</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
