<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby 2</anon>
    <anon>Ruby</anon>
  </categories>
  <description>ニコニコ動画がAPIを公開していることを知ったので軽く触ってみました。Ruby 2.0.0で読み込んでみましたが、XMLで提供されているのでとってもお手軽です。 以下のコードはニコニコ動画APIのgetthumbinfoを使用して動画のタイトルを拾ってきます。URLにはニコニコ大百科の「ニコニコ動画APIとは」で使用されていたものをそのまま使っています。組曲『ニコニコ動画』のタイトルを拾ってきます。 require 'rexml/document' require 'open-uri' xml = open('http://ext.nicovideo.jp/api/getthumbinfo/s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2013%2F12%2F29%2F000000&quot; title=&quot;Rubyとニコニコ動画APIで動画のタイトルを取得する - potisanのプログラミングメモ&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>2013-12-29 00:00:00</published>
  <title>Rubyとニコニコ動画APIで動画のタイトルを取得する</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2013/12/29/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
