Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Using Rio From Ruby To Easily Save A Web Page To File

DZone's Guide to

Using Rio From Ruby To Easily Save A Web Page To File

·
Free Resource
Found at http://www.juretta.com/log/2006/08/13/ruby_net_http_and_open-uri/


# (sudo) gem install rio
require 'rubygems'
require 'rio'
# open an URI an copy the content into a file
rio('http://www.juretta.com/') > rio('juretta_index.html')


Cool syntax!
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}