<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mzp</author_name>
  <author_url>https://blog.hatena.ne.jp/mzp/</author_url>
  <blog_title>みずぴー日記</blog_title>
  <blog_url>https://mzp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>30分プログラム</anon>
  </categories>
  <description>30分プログラム、その578。新しくTwitterが採用した、URL短縮サービスbit.lyを展開してみよう。APIを使うのはAPIキーが必要になったりして面倒だなー、と思いながらtinyurlの展開をしてるtig.rbのコードを読んでみた。そしたら、実に賢いことしてた。 def untinyurl(text) text.gsub(%r|http://tinyurl.com/[0-9a-z=]+|i) {|m| uri = URI(m) Net::HTTP.start(uri.host, uri.port) {|http| http.head(uri.request_uri)[&quot;Locatio…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090508%2Fbitly&quot; title=&quot;bit.lyの展開 - みずぴー日記&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>2009-05-08 00:00:00</published>
  <title>bit.lyの展開</title>
  <type>rich</type>
  <url>https://mzp.hatenadiary.org/entry/20090508/bitly</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
