From: Tom Arra Date: 2008-03-02T03:44:16+09:00 Subject: Re: Scan HTML Heres what I have so far #! /usr/bin/ruby require 'net/http' text = Net::HTTP.new('www.tomarra.com').get('/').body[ %r{(.*?)}mi, 1 ] print "TomArra.com Title Tag: " print text print "\n" s = "

blah blah 7.0.0.4.3 blah blah

"[ /[\d.]{3,}/ ] print s puts Net::HTTP.new('www.tomarra.com/credits.html').get('/').body[ %r{(.*?)}mi, 1 ] and here is my output TomArra.com Title Tag: Welcome To TomArra.com 7.0.0.4.3 SocketError: getaddrinfo: nodename nor servname provided, or not known method initialize in http.rb at line 564 method open in http.rb at line 564 method connect in http.rb at line 564 method timeout in timeout.rb at line 48 method timeout in timeout.rb at line 76 method connect in http.rb at line 564 method do_start in http.rb at line 557 method start in http.rb at line 546 method request in http.rb at line 1044 method get in http.rb at line 781 at top level in simple.rb at line 11 Program exited. -- Posted via http://www.ruby-forum.com/.