Added support for .space TLD
authortsaidi@tsaidi-ol.local
Mon, 12 Feb 2018 14:46:28 -0500
changeset 164 c89f5d13d9d8
parent 163 faaa3ce1af3e
child 165 92d15e20f7bd
Added support for .space TLD
whois/parser.py
--- a/whois/parser.py	Mon Feb 05 19:47:43 2018 +0000
+++ b/whois/parser.py	Mon Feb 12 14:46:28 2018 -0500
@@ -274,10 +274,22 @@
             return WhoisIe(domain, text)
         elif domain.endswith('.nz'):
             return WhoisNz(domain, text)
+        elif domain.endswith('.space'):
+            return WhoisSpace(domain, text)
         else:
             return WhoisEntry(domain, text)
 
 
+class WhoisSpace(WhoisEntry):
+    """Whois parser for .com domains
+    """
+    def __init__(self, domain, text):
+        if 'No match for "' in text:
+            raise PywhoisError(text)
+        else:
+            WhoisEntry.__init__(self, domain, text)
+
+
 class WhoisCom(WhoisEntry):
     """Whois parser for .com domains
     """