From: Joel Pearson Date: 2013-02-04T18:36:48+09:00 Subject: Re: Nokogiri scraping multiple URLs I haven't tested this code, it's just a flow example. There might be some array flattening or something you'd need to do. require 'nokogiri' require 'open-uri' require 'spreadsheet' my_excel_output = [] my_array =[ [my_url1, css1], [my_url2, css2] ] url_array.each do |my_url, my_css| doc = Nokogiri::HTML(open(my_url)) lines = doc.css(my_css).map(&:text) my_excel_output << lines end #Drop all the data into your spreadsheet. -- Posted via http://www.ruby-forum.com/.