Include raw WHOIS output

master
Sven Slootweg 12 years ago
parent 9f7e9444d0
commit bb33a423bc

@ -206,7 +206,7 @@ def whois(domain):
if data['registrar'] is not None: if data['registrar'] is not None:
data['registrar'] = remove_duplicates(data['registrar']) data['registrar'] = remove_duplicates(data['registrar'])
return data return out, data
def parse_dates(dates): def parse_dates(dates):
global grammar global grammar

@ -1,7 +1,7 @@
from setuptools import setup from setuptools import setup
setup(name='pythonwhois', setup(name='pythonwhois',
version='1.1.0', version='1.2.0',
description='Module for retrieving and parsing the WHOIS data for a domain. Supports most domains. Requires jwhois to be installed.', description='Module for retrieving and parsing the WHOIS data for a domain. Supports most domains. Requires jwhois to be installed.',
author='Sven Slootweg', author='Sven Slootweg',
author_email='pythonwhois@cryto.net', author_email='pythonwhois@cryto.net',

@ -10,7 +10,8 @@ testlist = open("testlist.txt").readlines()
# print "WHOIS for %s does not contain an update date?" % line # print "WHOIS for %s does not contain an update date?" % line
#result = pythonwhois.whois("google.com") #result = pythonwhois.whois("google.com")
result = pythonwhois.whois(sys.argv[1]) raw, result = pythonwhois.whois(sys.argv[1])
print raw
print result print result
#print "Creation date: ", #print "Creation date: ",

Loading…
Cancel
Save