Nokogiri not parsing the whole document

Hi, I want to scrape the data of each of the products of the following link:

The problem is that the output always give me the value of the first product, but not of the others… Im grateful for you help. Here is my code:

require “open-uri”

require “Nokogiri”

require “csv”

url = “

page = Nokogiri::HTML(open(url))

articlenum = page.css(".jcepopup.noicon")

articlenum.each do |articlenum|

puts articlenum.attribute(“alt”)


“Output: 01.00.1P1” but where are the other numbers??

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs