From: Peter Szinek Date: 2006-12-18T02:04:51+09:00 Subject: Re: Grabbing data off a webpage Hi Bill, How about: require 'rubygems' require 'open-uri' require 'hpricot' require 'enumerator' Record = Struct.new("Record", :id, :title, :author, :book_level, :points) records = [] cells = Hpricot(open('http://yorkcountyschools.org/mves/arlist/3-3.4.htm'))/"/html/body/table/tbody/tr//td" cells.map { |elem| elem.inner_html }.each_slice(5) do |slice| records << Record.new(*slice) end HTH, Peter __ http://www.rubyrailways.com