Now splits whois info by newline
This commit is contained in:
parent
38d12188ec
commit
8d6bc53b9f
8
HTTPy.py
8
HTTPy.py
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user