equal
deleted
inserted
replaced
294 else: |
294 else: |
295 WhoisEntry.__init__(self, domain, text, self.regex) |
295 WhoisEntry.__init__(self, domain, text, self.regex) |
296 |
296 |
297 match = re.compile('Registrar:(.*?)DNSSEC', re.DOTALL).search(text) |
297 match = re.compile('Registrar:(.*?)DNSSEC', re.DOTALL).search(text) |
298 if match: |
298 if match: |
299 lines = match.groups()[0].strip().splitlines() |
299 lines = [line.strip() for line in match.groups()[0].strip().splitlines()] |
300 self.name = lines[0] |
300 self['name'] = lines[0] |
301 self.address = lines[1] |
301 self['address'] = lines[1] |
302 if len(lines) == 4: |
302 if len(lines) == 4: |
303 self.zip_code, _, self.city = lines[2].partition(' ') |
303 self['zip_code'], _, self['city'] = lines[2].partition(' ') |
304 self.country = lines[-1] |
304 self['country'] = lines[-1] |
|
305 |
305 |
306 |
306 |
307 |
307 class WhoisName(WhoisEntry): |
308 class WhoisName(WhoisEntry): |
308 """Whois parser for .name domains |
309 """Whois parser for .name domains |
309 """ |
310 """ |