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.

19 lines
426 B
Python

12 years ago
#!/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")
print result
#print "Creation date: ",
#print result['creation_date']
#print "Expiration date: ",
#print result['expiration_date']