From 2d7887bec4a0934975c81bb3edcf40d39f0b4ac5 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 21 Sep 2012 06:56:05 +0200 Subject: [PATCH] Add support for .it domains --- pythonwhois/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pythonwhois/__init__.py b/pythonwhois/__init__.py index 5ccb5be..ef5661d 100644 --- a/pythonwhois/__init__.py +++ b/pythonwhois/__init__.py @@ -34,6 +34,7 @@ grammar = { 'Record expires on\s?[.]*:?\s*?(?P.+)', 'Record expires\s?[.]*:?\s*?(?P.+)', 'Expires\s?[.]*:?\s*?(?P.+)', + 'Expire Date\s?[.]*:?\s*?(?P.+)', 'Domain Expiration Date\s?[.]*:?\s*?(?P.+)'], 'updated_date': ['Database last updated on\s?[.]*:?\s*?(?P.+)\s[a-z]+\.?', 'Record last updated on\s?[.]*:\s?(?P.+)\.', @@ -45,6 +46,7 @@ grammar = { 'Domain Last Updated Date\s?[.]*:\s?(?P.+)', 'Record last updated\s?[.]*:\s?(?P.+)', 'Modified\s?[.]*:\s?(?P.+)', + 'Last Update\s?[.]*:\s?(?P.+)', 'Last update of whois database:\s?[a-z]{3}, (?P.+) [a-z]{3}'], 'registrar': ['Registered through:\s?(?P.+)', 'Registrar Name:\s?(?P.+)', @@ -54,7 +56,8 @@ grammar = { 'name_servers': ['(?P[a-z]*d?ns[0-9]+([a-z]{3})?\.([a-z0-9-]+\.)+[a-z0-9]+)', '(?P[a-z0-9-]+\.d?ns[0-9]*\.([a-z0-9-]+\.)+[a-z0-9]+)', '(?P([a-z0-9-]+\.)+[a-z0-9]+)(\s+([0-9]{1,3}\.){3}[0-9]{1,3})', - 'DNS[0-9]+:\s*(?P.+)'], + 'DNS[0-9]+:\s*(?P.+)', + '(?Pdns\.([a-z0-9-]+\.)+[a-z0-9]+)'], 'emails': ['(?P[\w.-]+@[\w.-]+\.[\w]{2,4})'] }, "_dateformats": (