Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 884 Bytes

README.md

File metadata and controls

49 lines (36 loc) · 884 Bytes

python-whois

Whois query with Python

Usage

usage: whois.py [-h] [-domain DOMAIN] [--allofthem] [-save SAVE]

optional arguments:
  -h, --help      show this help message and exit
  -domain DOMAIN  Whois query.
  --allofthem     Whois query.
  -save SAVE      Saves Queries.

Examples

Basic query

whois.py -domain example.com

More queries

whois.py -domain example.com;net;biz;org

Query declared all domains.(Not declared all domains in internet)

whois.py -domain example.com --allofthem

Save queries

whois.py -domain example.com -save C:/example.txt
whois.py -domain example.com -save example.txt

Using as library

import whois
result_query = whois.whois_query("www.google.com")#Returns query result to result_query.