From: "lrlebron@..." Date: 2007-04-19T00:45:06+09:00 Subject: Hpricot getting a table 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
Stuff
Stuff
Stuff
Stuff
Stuff
Stuff
Stuff
Stuff
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