From: jbw Date: 2010-03-30T23:57:54+09:00 Subject: Re: how to get the row size of the html's table? --0003255565768dd9af048305dac6 Content-Type: text/plain; charset=UTF-8 Hi, I think this might be useful http://soledadpenades.com/2007/06/15/extracting-data-with-hpricot/ On Tue, Mar 30, 2010 at 12:40 PM, Pen Ttt wrote: > in vb, we can use webbrowaer to get tables row. > for example, > > webbrowser1.document.getElementsByTagName("table")(0).rows.length > > then we can get the row size of html'table 1 > > if i have a html file(/home/name/test.html) , there are many tables in > it , how can i use ruby to get the row size of html'table 1,such as > webbrowser1.document.getElementsByTagName("table")(0).rows.length (vb) > -- > Posted via http://www.ruby-forum.com/. > > -- jbw --0003255565768dd9af048305dac6--