Added elegibility type

This commit is contained in:
Benjamyn Love 2017-07-28 11:35:10 +10:00
parent 02f3bef844
commit 77fb8be3ef

View File

@ -108,10 +108,11 @@ def parseWhois(whioisInfo):
U = re.compile("^[Uu]")
S = re.compile("Status")
L = re.compile("^[Ll]")
E = re.compile("^[Ee]")
for str in whioisInfo:
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) or E.match(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:
if "ok" in str or "OK" in str: