Now splits whois info by newline

This commit is contained in:
Benjamyn Love 2017-05-23 21:50:48 +10:00
parent 38d12188ec
commit 8d6bc53b9f

View File

@ -10,6 +10,8 @@ import subprocess
#Make this work with linux magic
count = 0
currtag = ""
conf_temp = "pre"
#URL https://www.whois.com/whois/benjamyn-testing.com
@ -50,7 +52,11 @@ print partDomain
lookup = subprocess.check_output(["whois", domain])
print "========================================================"
print lookup
test = lookup.split("\n")
while count != len(test):
print count, test[count]
count = count + 1
#conn = httplib.HTTPSConnection("www.whois.com")
#conn.request("GET", "/whois/" + domain)