pwhois ====== [![Gem Version][1]][2] [![Code Climate][3]][4] [![Build Status][5]][6] [1]:https://badge.fury.io/rb/pwhois.svg [2]:https://badge.fury.io/rb/pwhois [3]:https://codeclimate.com/github/Crosse/pwhois/badges/gpa.svg [4]:https://codeclimate.com/github/Crosse/pwhois [5]: https://travis-ci.org/Crosse/pwhois.svg?branch=master [6]: https://travis-ci.org/Crosse/pwhois `pwhois` is a small command-line utility that takes advantage of the [Ruby Whois][whois] module to parse Whois results and display them in a coherent style. From their [Parsers][parsers] page: > I know what you are thinking and the record is yes: in order to support > all existing WHOIS servers and registrars, the Whois library should > provide more than 500 different parsers. And this is exactly one of the > major development goal. This utility will not give you the full, parsed output of a whois query (yet). It appears that the [Ruby Whois][whois] module supports only a subset of possible returned properties. See the gem's [Properties][properties] page for the list of supported properties. # Installation $ gem install pwhois # Usage $ pwhois -h Usage: pwhois [options] Specific options: -v, --[no-]verbose Run verbosely -o, --output TYPE Output style. One of: csv, tsv, table, list -a, --attributes x,y,z Attributes to return. -h, --help Show this message # Output Styles ## CSV (Comma-Separated Values) $ pwhois -o csv github.com Domain,Created On,Updated On,Registrar Name github.com,2013-06-14 19:07:02 -0400,2013-11-27 07:00:15 -0500,"MarkMonitor, Inc." ## TSV (Tab-Separated Values) $ pwhois -o tsv github.com Domain Created On Updated On Registrar Name github.com 2013-06-14 19:07:02 -0400 2013-11-27 07:00:15 -0500 MarkMonitor, Inc. ## List (Default Style) $ pwhois -o list github.com Domain : github.com Created On : 2013-06-14 19:07:02 -0400 Updated On : 2013-11-27 07:00:15 -0500 Registrar Name: MarkMonitor, Inc. ## Table $ pwhois -o table github.com Domain Created On Updated On Registrar Name ---------- ------------------------- ------------------------- ----------------- github.com 2013-06-14 19:07:02 -0400 2013-11-27 07:00:15 -0500 MarkMonitor, Inc. # Multiple Queries You can give `pwhois` a list of domains and it will return the results in a format useful to the style. ## CSV/TSV style The header line is printed only once: $ pwhois -o csv $(