Nokogiri not parsing the whole document

Hi, I want to scrape the data of each of the products of the following link: https://gsab.de/index.php/produkte/zaehleranschlusssaeulen/thueringen/zaehleranschlusssaeulen-ten-thueringer-energienetz.html

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 = “https://gsab.de/index.php/produkte/zaehleranschlusssaeulen/thueringen/zaehleranschlusssaeulen-ten-thueringer-energienetz.html

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

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

articlenum.each do |articlenum|

puts articlenum.attribute(“alt”)

end

“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