lrlebron@gmail.com
4/18/2007 3:43:00 PM
I am currently trying to scrape some data from the following web page
I am using some hpricot code that looks like this
@doc = Hpricot(open(strLink))
@doc.search("/html/body/table[5]/tr/td[2]/div[3]/table/tr/td/div[1]/
table") do |data|
puts data
end
At this point data contains html that looks like this
<table><tr><td>Stuff</td></tr><tr><td>Stuff</td></tr></table>
<table><tr><td>Stuff</td></tr><tr><td>Stuff</td></tr></table>
<table><tr><td>Stuff</td></tr><tr><td>Stuff</td></tr></table>
<table><tr><td>Stuff</td></tr><tr><td>Stuff</td></tr></table>
More stuff continues ......
I want capture each of these four tables individually for further
processing. I have tried a variety of methods but nothing seems to
work.
Thanks,
Luis