Nokogiri/Mechanize エンコード問題で上手くform,field等が見つからないとき
thePage=a.get(href).body.toutf8
dom=Nokogiri::HTML( thePage )
print dom.at('p[property="main_title"]').inner_text
print dom.at('input[name="comment"]')['value']
form=dom.at('form[id="toukou"]')
Mechanize::Form.new(form,a,a.page){|f| f['date']=Time.now; f['login']='John Smith' }.submit