Add test script
This commit is contained in:
1 parent
f82199192b
commit
a18faefe93
1 file changed
+13
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
os.sys.path.insert(0, parentdir)
|
||||
|
||||
from whois import whois
|
||||
from whois import parser
|
||||
|
||||
print dir(whois)
|
||||
domain = "example.com"
|
||||
w = whois(domain, True)
|
||||
t = w.query(False)
|
||||
p = parser.Parser(domain, t[1], t[0], True)
|
||||
print p.parse()
|
||||
Reference in new issue
Block a user