{"description":"bit.ly\u306e\u5c55\u958b\u3092\u4f7f\u3063\u3066\u3001tig.rb\u3092bit.ly\u3068is.gd\u306b\u3082\u5bfe\u5fdc\u3055\u305b\u3066\u307f\u305f\u3002 def untinyurl(text) text.gsub(%r!http://(?:(preview\\.)?tinyurl\\.com|bit\\.ly|is\\.gd)/[0-9a-z=]+!i) {|m| uri = URI(m) uri.host = uri.host.sub($1, \"\") if $1 Net::HTTP.start(uri.host, uri.port) {|http| http.open_timeout = 3 begin http.head(uri.request_uri, { \"\u2026","author_name":"mzp","categories":["\u65e5\u8a18"],"type":"rich","blog_url":"https://mzp.hatenadiary.org/","published":"2009-05-08 00:00:01","url":"https://mzp.hatenadiary.org/entry/20090508/tig","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090508%2Ftig\" title=\"\u81ea\u5206\u7528tig.rb\u3092\u66f8\u304d\u63db\u3048\u3066\u3001bit.ly\u3082\u5c55\u958b\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/mzp/","title":"\u81ea\u5206\u7528tig.rb\u3092\u66f8\u304d\u63db\u3048\u3066\u3001bit.ly\u3082\u5c55\u958b\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002","height":"190","version":"1.0","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","width":"100%"}