It's very easy, just do:

> require 'net/http'
> website = Net::HTTP.get 'www.yahoo.com', '/'

Now you have the yahoo.com startpage sourcode in website. To see it:

> puts website

The Net::HTTP documentation has more examples:

http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html


Martin



On Thursday 18 January 2007 20:25, anon1m0us wrote:
> Hi;
> No clue how to do this. My program to go to a website and read data and
> process it. Don't kow where to even begin! How do I go to a website in
> RUBY? How to I start reading the data?