C
Chris Berry
I am trying to view the source code in whois.net using the following
code:
require 'open-uri'
open("http://whois.net/whois/qoxax.com") {|f|
text = f.read
lines = f.readlines
text = lines.join
text.gsub!(/\s+/," ")
puts text
}
The whois.net view source has TONS of whitespace at the beginning and
end which I am guessing is causing this to come up blank when I run this
code but perhaps you have better ideas / luck?
code:
require 'open-uri'
open("http://whois.net/whois/qoxax.com") {|f|
text = f.read
lines = f.readlines
text = lines.join
text.gsub!(/\s+/," ")
puts text
}
The whois.net view source has TONS of whitespace at the beginning and
end which I am guessing is causing this to come up blank when I run this
code but perhaps you have better ideas / luck?