I try to parse some html content using ruby. I use the following code:
require 'open-uri'
url = 'http://www.fooducate.com/appo#!page=browse&nav=0'
html = open(url)
IO.copy_stream(html,'test.html')
But what i have get is only the content div without content:
<div id="page-content" class="content group">
</div>
Is that a bug in parser? How can i fix that problem ?
IO.copy_streamdoes not care about the content. A parser would be something like Nokogiri which reads the HTML document and builds a representation of it so you can read or manipulate the document.