From: "AMILIN Aurélien" Date: 2010-04-10T23:55:57+09:00 Subject: Re: how to analyse web with nokogiri? Le 10/04/2010 16:07, Pen Ttt a écrit : > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
date2009-12-312009-09-30
asset580 680
cash1,6931,777
finance2012497
note500700
> Yes it's possible you could try this : table = "
date 2009-12-31 2009-09-30
asset 580 680
cash 1,693 1,777
finance 201 2497
note 500 700
" parser = Nokogiri::HTML(table) result = [ ] parser.css("table tr td").each_with_index do |td, i| result[i%3] ||= "" result[i%3] << "#{td.content};" end puts result >>"date;asset;cash;finance;note;" "2009-12-31;580;1,693;201;500;" "2009-09-30; 680;1,777;2497;700;" -- Aurélien AMILIN