From: Robert Klemme Date: 2009-04-20T17:49:02+09:00 Subject: Re: Get Source Code of a http://... site? 2009/4/20 Joshua Muheim : > Robert Klemme wrote: >> 2009/4/20 Joshua Muheim : >>> I want to download the source code of a website using Ruby? How can I >>> achieve this? ...when searching with Google, I only get download links >>> for the Ruby source etc. ;-) >> >> The source code of a web site is usually not available apart from the >> JavaScript you see in pages - for good reasons (security, >> copyright...). > > Oh, I wasn't clear enough, I just need the XHTML code, no > behind-the-scenes Ruby or PHP or stuff. ;-) There are mechanize, hpricot and a few other alternatives that can help you there. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/