To save the HTML of a web page using ruby, it's very easy. One way to do is by using rio :
require 'rubygems' require 'rio' rio('http://www.google.com') > rio('google.html')
It is possible to do the same for by parsing the html, requesting again the different image,s js, css and then save each of them. I think it is not very efficient. So, is there a way to save a web page + all the images, css, and javascript that are related to that page .... and all this automatically.