You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
467 B
Python

#!/usr/bin/python
import sys, pythonwhois
testlist = open("testlist.txt").readlines()
#for line in testlist:
# result = pythonwhois.whois(line)
#
# if result['updated_date'] is None:
# print "WHOIS for %s does not contain an update date?" % line
#result = pythonwhois.whois("google.com")
result = pythonwhois.whois(sys.argv[1])
print result
#print "Creation date: ",
#print result['creation_date']
#print "Expiration date: ",
#print result['expiration_date']