From: Tom Bombadil Date: 2007-06-08T00:28:14+09:00 Subject: Problem with getting info from several websites ------=_Part_57225_16019199.1181230094565 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi there, The code below provides me the html for a specific id of the site: www.securityfocus.com What I'm trying to do is: Getting the info of the div id ="vulnerability" only, but for all the different id's available - currently around 25000. I think it is something like: next_page 'Next'>', :limit => 25000 but where do I need to put it and how can I get the div id info only? I appreciate your help. require 'rubygems' require 'hpricot' require 'open-uri' # load the Securityfocus home page (id 715 to start) doc = Hpricot(open("http://www.securityfocus.com/bid/715")) # print the altered HTML puts doc -tom ------=_Part_57225_16019199.1181230094565--