Finally decided to use whois.com as there output is not aids
This commit is contained in:
parent
f230a5bb80
commit
55cad59af8
6
HTTPy.py
6
HTTPy.py
@ -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()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user