Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion popular whois server response not being parsed
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simone Carletti  
View profile  
 More options May 2 2012, 6:02 am
From: Simone Carletti <wep...@weppos.net>
Date: Wed, 2 May 2012 12:02:27 +0200
Local: Wed, May 2 2012 6:02 am
Subject: Re: popular whois server response not being parsed

The Whois server for twitter.com is verisign, then melbourne.
The simplest way is the leave the library handing the full whois process.

r = Whois.query "twitter.com"
r.expires_on
# => 2019-01-21 00:00:00 +0100

On Wed, May 2, 2012 at 9:35 AM, Craayzie <flesh...@gmail.com> wrote:
> I just started playing with this library and it looks really
> fantastic!

> One of the first lookups I tried was for 'twitter.com'. The whois
> server for twiter.com is @ whois.melbourneit.com.

> When I attempt to query it using the Server class, the response isn't
> parsed/formatted.

> server = Whois::Server.factory(:tld, ".", "whois.melbourneit.com")
> r = server.query('twitter.com')

> How would I go about getting a parsed response for twitter.com such
> that I can then access different parts of it?

> e.g. r.registrant_contacts

> Thanks in advance!

--
Simone Carletti
Application Developer

Site & Blog: http://www.simonecarletti.com
Email: wep...@weppos.net
LinkedIn: http://linkedin.com/in/weppos
Skype: weppos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.