Hum. Got me thinking, it's been awhile since I've used Net::HTTP, I
may have misspoken
So watir to html file
#only problem is it leaves an ie window hanging around, but it IS tiny
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
require 'watir'
File.open("/yea.html","w"){|f|
f.write(Watir::IE.start("
http://news.google.com").html)}
Net::HTTP to html file
#just as small, easy and clean!
require 'net/http'
File.open("/yea.html","w"){|f|
f.write(Net::HTTP.get("news.google.com","/index.html"))}
Now the complexity comes when you want to navigate from page to page.
With Watir you do things like
@ie=Watir::IE.start(blah)
@ie.link
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
text,/tofu/).click
Easy! And there is also firewatir which is a workalike for firefox
(haven't tried it myself)
NetHTTP is a bit more involved, but quite doable, and you don't need
windows or a gui or anything. Sadly I can't find the code I wrote
using it awhile ago.
Still lookie here, it's useful.
http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html