<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tapira</author_name>
  <author_url>https://blog.hatena.ne.jp/tapira/</author_url>
  <blog_title>カメニッキ</blog_title>
  <blog_url>https://tapira.hatenablog.com/</blog_url>
  <categories>
    <anon>old</anon>
  </categories>
  <description>必要になったので調べました。はてな側にはてブ数を返すAPIが存在するので、それにリクエストするだけです。 扱いやすいようにjsonで返してもらいます。ヤフージャパン(http://www.yahoo.co.jp/)のはてぶ数取得は以下でできました。 require 'net/http' require 'json'hatena_json_uri = &quot;http://b.hatena.ne.jp/entry/json/?url=http://www.yahoo.co.jp/&quot; res = Net::HTTP.get_response(URI.parse(hatena_json_uri)) jso…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftapira.hatenablog.com%2Fentry%2F20120414%2F1334410097&quot; title=&quot;rubyで指定したURLのはてなブックマーク数を取得する - カメニッキ&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>2012-04-14 22:28:17</published>
  <title>rubyで指定したURLのはてなブックマーク数を取得する</title>
  <type>rich</type>
  <url>https://tapira.hatenablog.com/entry/20120414/1334410097</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
