Finally decided to use whois.com as there output is not aids

This commit is contained in:
Benjamyn Love 2017-05-22 02:29:02 +10:00
parent f230a5bb80
commit 55cad59af8

View File

@ -12,7 +12,7 @@ class MyHTMLParser(HTMLParser):
global conf_temp global conf_temp
global starttag global starttag
if tag == conf_temp: if tag == conf_temp:
# starttag = tag # starttag = tag
for name, value in attrs: for name, value in attrs:
if name == "class" and value == "df-raw": if name == "class" and value == "df-raw":
print tag print tag
@ -33,7 +33,7 @@ class MyHTMLParser(HTMLParser):
conn = httplib.HTTPSConnection("www.whois.com") conn = httplib.HTTPSConnection("www.whois.com")
conn.request("GET", "/whois/benjamyn-testing.com") conn.request("GET", "/whois/ventraip.com.au")
r1 = conn.getresponse() r1 = conn.getresponse()
parser = MyHTMLParser() parser = MyHTMLParser()