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

This commit is contained in:
benjamyn committed 2017-05-22 02:29:02 +10:00
1 parent f230a5bb80
commit 55cad59af8
1 file changed
+3 -3
+3 -3
View File
@@ -12,11 +12,11 @@ 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
starttag = tag starttag = tag
# pass # pass
#print starttag #print starttag
@@ -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()