This commit is contained in:
Benjamyn Love 2017-07-28 11:22:56 +10:00
parent c545eb7681
commit 02f3bef844

View File

@ -112,8 +112,8 @@ def parseWhois(whioisInfo):
for str in whioisInfo: for str in whioisInfo:
str = str.strip() str = str.strip()
if NS.match(str) or D.match(str) or R.match(str) or U.match(str) or S.match(str) or L.match(str): if NS.match(str) or D.match(str) or R.match(str) or U.match(str) or S.match(str) or L.match(str):
if "domain" in str or "Domain" in str and "Name" not in str: if "domain" in str or "Domain" in str and "Name" not in str or "Status" in str:
if "name" not in str and "ID" not in str or "Status" in str: if "name" not in str and "ID" not in str:
if "ok" in str or "OK" in str: if "ok" in str or "OK" in str:
print bcolors.GREEN + str + bcolors.RESET print bcolors.GREEN + str + bcolors.RESET
else: else: