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
|
#Make this work with linux magic
|
||||||
|
|
||||||
|
count = 0
|
||||||
|
|
||||||
currtag = ""
|
currtag = ""
|
||||||
conf_temp = "pre"
|
conf_temp = "pre"
|
||||||
#URL https://www.whois.com/whois/benjamyn-testing.com
|
#URL https://www.whois.com/whois/benjamyn-testing.com
|
||||||
@ -50,7 +52,11 @@ print partDomain
|
|||||||
|
|
||||||
lookup = subprocess.check_output(["whois", domain])
|
lookup = subprocess.check_output(["whois", domain])
|
||||||
print "========================================================"
|
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 = httplib.HTTPSConnection("www.whois.com")
|
||||||
#conn.request("GET", "/whois/" + domain)
|
#conn.request("GET", "/whois/" + domain)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user