272 return WhoisCat(domain, text) |
272 return WhoisCat(domain, text) |
273 elif domain.endswith('.ie'): |
273 elif domain.endswith('.ie'): |
274 return WhoisIe(domain, text) |
274 return WhoisIe(domain, text) |
275 elif domain.endswith('.nz'): |
275 elif domain.endswith('.nz'): |
276 return WhoisNz(domain, text) |
276 return WhoisNz(domain, text) |
|
277 elif domain.endswith('.space'): |
|
278 return WhoisSpace(domain, text) |
277 else: |
279 else: |
278 return WhoisEntry(domain, text) |
280 return WhoisEntry(domain, text) |
|
281 |
|
282 |
|
283 class WhoisSpace(WhoisEntry): |
|
284 """Whois parser for .com domains |
|
285 """ |
|
286 def __init__(self, domain, text): |
|
287 if 'No match for "' in text: |
|
288 raise PywhoisError(text) |
|
289 else: |
|
290 WhoisEntry.__init__(self, domain, text) |
279 |
291 |
280 |
292 |
281 class WhoisCom(WhoisEntry): |
293 class WhoisCom(WhoisEntry): |
282 """Whois parser for .com domains |
294 """Whois parser for .com domains |
283 """ |
295 """ |