<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>secondlife</author_name>
  <author_url>https://blog.hatena.ne.jp/secondlife/</author_url>
  <blog_title>2nd life (移転しました)</blog_title>
  <blog_url>https://secondlife.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>http://blog.labnotes.org/category/scrapi/ ruby でスクレイピングして web の情報を取得するのには、今まで正規表現か xpath でやってたので、わりと面倒でした。で、ふと scrAPI というスクレイピングツールキットを知ったのですが、これがかなり便利そう。 このツールキットを使うと、CSS3 なセレクタを記述することで、要素を取得することができます。たとえばとあるサイトのリンクを全部取得したければ、 require 'rubygems' require 'scrapi' require 'open-uri' require 'nkf' req…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecondlife.hatenablog.jp%2Fentry%2F20060922%2F1158923779&quot; title=&quot;ruby のスクレイピングツールキット scrAPI - 2nd life (移転しました)&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-09-22 20:16:19</published>
  <title>ruby のスクレイピングツールキット scrAPI</title>
  <type>rich</type>
  <url>https://secondlife.hatenablog.jp/entry/20060922/1158923779</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
