From 8d6bc53b9f3ffc39b11cc43a29a7fce897429df6 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 23 May 2017 21:50:48 +1000 Subject: [PATCH] Now splits whois info by newline --- HTTPy.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/HTTPy.py b/HTTPy.py index cab18c9..1234d33 100755 --- a/HTTPy.py +++ b/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)