{"blog_title":"onodes\u2019s Memo","author_name":"onodes","height":"190","url":"https://onodes.hatenadiary.org/entry/20091019/1255969656","blog_url":"https://onodes.hatenadiary.org/","version":"1.0","published":"2009-10-19 01:27:36","type":"rich","categories":[],"width":"100%","image_url":null,"author_url":"https://blog.hatena.ne.jp/onodes/","title":"Ruby\u306eMechanize\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3059\u308b","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","description":"\u3053\u3093\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408 /var/lib/gems/1.8/gems/mechanize-0.9.3/lib/www/mechanize/util.rb:40:in `iconv': can't convert nil into String (TypeError) \u3053\u308c\u306fnokogiri\u3092\u66f8\u304d\u63db\u3048\u308b\u3057\u304b\u306a\u3044\u306e\u3067\u3044\u3063\u305d\u306e\u3053\u3068 require 'rubygems' require 'mechanize' require 'hpricot' #\u3053\u3044\u3064 Mechanize.html_parser = Hpricot #\u3053\u3044\u3064 agent = Mechanize.new ... \u306b\u3057\u3066\u3057\u307e\u3046","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fonodes.hatenadiary.org%2Fentry%2F20091019%2F1255969656\" title=\"Ruby\u306eMechanize\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3059\u308b - onodes\u2019s Memo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}