From 73a363eb0002abb89c7ada0a95190c23468b7586 Mon Sep 17 00:00:00 2001 From: Christian Koepp Date: Fri, 28 Feb 2014 17:10:23 +0100 Subject: [PATCH] partial support of regexpr for .de domains --- pythonwhois/parse.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pythonwhois/parse.py b/pythonwhois/parse.py index c15d6d2..a339383 100644 --- a/pythonwhois/parse.py +++ b/pythonwhois/parse.py @@ -68,7 +68,8 @@ grammar = { 'Last Update\s?[.]*:\s?(?P.+)', 'Last updated on (?P.+) [a-z]{3,4}', 'Last updated:\s*(?P.+)', - 'Last update of whois database:\s?[a-z]{3}, (?P.+) [a-z]{3,4}'], + 'Last update of whois database:\s?[a-z]{3}, (?P.+) [a-z]{3,4}', + 'Changed:\s*(?P.+)'], 'registrar': ['registrar:\s*(?P.+)', 'Registrar:\s*(?P.+)', 'Sponsoring Registrar Organization:\s*(?P.+)', @@ -92,7 +93,8 @@ grammar = { 'NS [0-9]+\s*:\s*(?P.+)', '(?[a-z0-9-]+\.d?ns[0-9]*\.([a-z0-9-]+\.)+[a-z0-9]+)', '(?([a-z0-9-]+\.)+[a-z0-9]+)(\s+([0-9]{1,3}\.){3}[0-9]{1,3})', - '(?d?ns\.([a-z0-9-]+\.)+[a-z0-9]+)'], + '(?d?ns\.([a-z0-9-]+\.)+[a-z0-9]+)', + 'Nserver:\s*(?P.+)'], 'emails': ['(?P[\w.-]+@[\w.-]+\.[\w]{2,6})', # Really need to fix this, much longer TLDs now exist... '(?P[\w.-]+\sAT\s[\w.-]+\sDOT\s[\w]{2,6})'] }, @@ -106,7 +108,8 @@ grammar = { '(?P[0-9]{4})[./-](?P[0-9]{1,2})[./-](?P[0-9]{1,2})', '(?P[0-9]{1,2})[./ -](?P[0-9]{1,2})[./ -](?P[0-9]{4}|[0-9]{2})', '(?PJan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?P[0-9]{1,2}),? (?P[0-9]{4})', - '(?P[0-9]{1,2})-(?PJanuary|February|March|April|May|June|July|August|September|October|November|December)-(?P[0-9]{4})' + '(?P[0-9]{1,2})-(?PJanuary|February|March|April|May|June|July|August|September|October|November|December)-(?P[0-9]{4})', + '(?P[0-9]{4})-(?P[0-9]{2})-(?P[0-9]{2})T(?P[0-9]{2}):(?P[0-9]{2}):(?P[0-9]{2})', ), "_months": { 'jan': 1,