From: Peter Szinek Date: 2007-06-08T17:02:39+09:00 Subject: Re: Problem with getting info from several websites Tom Bombadil wrote: > George, > > Thanks, however p (doc/'#vulnerability') still delivers me the whole > site... > i only need the content of the div id = "vulnerability". How to proceed > with > that? Does this solve your problem? require 'rubygems' require 'hpricot' require 'open-uri' doc = Hpricot(open("http://www.securityfocus.com/bid/715")) p doc/"div[@id='vulnerability']" If you don't want to scrape the table further, then the above solution should be enough - but if you want to go on and drill down the table, you could check out scRUBYt! (http://scrubyt.org), a Ruby web scraping tool which is designed to handle such issues. Cheers, Peter __ http://www.rubyrailways.com :: Ruby and Web2.0 blog http://scrubyt.org :: Ruby web scraping framework http://rubykitchensink.ca/ :: The indexed archive of all things Ruby.