{"published":"2010-01-12 00:00:01","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F20100112%2Fp3\" title=\"HTML\u89e3\u6790\u306e\u30e9\u30a4\u30d6\u30e9\u30eaHpricot - shikaku&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","image_url":null,"author_name":"shikaku","type":"rich","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/shikaku/","blog_url":"https://blog.systemjp.net/","title":"HTML\u89e3\u6790\u306e\u30e9\u30a4\u30d6\u30e9\u30eaHpricot","blog_title":"shikaku's blog","description":"\u3053\u3093\u306a\u611f\u3058\u3067\u4f7f\u3048\u308b require 'hpricot' require 'open-uri' url = 'http://yahoo.co.jp/' # HTML\u89e3\u6790 doc = Hpricot( open(url.chomp).read ) # \u30da\u30fc\u30b8\u30bf\u30a4\u30c8\u30eb\u62bd\u51fa title = (doc/:html/:head/:title).text.tosjis puts title #img\u30bf\u30b0\u306e\u4e2d\u3067.jpg\u306e\u8005\u3060\u3051\u62bd\u51fa (doc/:img).each do |img| img_address = \"#{img[:src]}\".tosjis if (/.*jpg/ =~ img_address) !\u2026","categories":["Ruby"],"url":"https://blog.systemjp.net/entry/20100112/p3","width":"100%","height":"190"}