Iterating through multiple URLs to parse HTML with Nokogori
问题 What I'm trying to do is scrape the names and prices of items from multiple vendors using Nokogiri. I'm passing the CSS selectors (to the find names and prices) to Nokogiri with method arguments. Any guidance on how to pass multiple URLs to the "scrape" method while also passing the other arguments (ex: vendor, item_path)? Or am I going about this the completely wrong way? Here is the code: require 'rubygems' # Load Ruby Gems require 'nokogiri' # Load Nokogiri require 'open-uri' # Load Open