I am trying to scrape a website for product names.
My controller does the following:
page = Nokogiri::HTML(open(PAGE_URL))
@items_array = page.css("li.item h3")
Then displaying it in the view as:
<%= @items_array.each do |item| %>
<%= item.text %><br /><br />
<% end %>
The problem is that the HTML is only loaded for the first 10 items. The rest is generated by JavaScript. I can't seem to figure out how exactly.
Any ideas on how to scrape the rest of the content is much appreciated!