From: Tom Bombadil Date: 2007-06-10T18:26:48+09:00 Subject: Fwd: Problem with getting info from several websites ------=_Part_90759_23637259.1181467609471 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi there, I'm trying to get data from a couple of websites at the same time by using: (1..10).each { |p| print p} # should get the content from the pages with the id's 1 to 10... # load the Securityfocus home page (id 1 to start) doc = Hpricot(open("http://www.securityfocus.com/bid/1 ")) # get the content of the div id ="vulnerability" p =(doc/'#vulnerability').inner_html # prints div id = 'vulnerability' puts p Must I use an array? Thanks, Tom ------=_Part_90759_23637259.1181467609471--