Replace CRLF with LF, fix bugs, .im support

This commit is contained in:
Larry Kim 2013-02-10 23:16:14 +09:00
parent 4b3901c8f4
commit 07bf8f5138
3 changed files with 14 additions and 9 deletions

View File

@ -1,8 +1,14 @@
parse = {
"default": {
"NotFound": "was not found.",
"DomainName": "Domain Name:\s+(.+)",
"RegistrantName": "Domain Owners \/ Registrant\nName:\s+(.+)",
"RegistrantAddress": "Domain Owners \/ Registrant\nName: .+\nAddress\n([\S\s]*)\nAdministrative",
"ExpirationDate": "Expiry Date: (.+)",
"Registrar": "Domain Managers\nName: (.+)",
"RegistrarAddress": "Domain Managers\nName: .+\nAddress\n([\S\s]*)\nDomain Owners",
"AdminName": "Administrative Contact\nName:\s+(.+)",
"AdminAddress": "Administrative Contact\nName:.+\nAddress\n([\S\s]*)\nBilling Contact",
"NameServer": "Name Server:\s+(.+)[.]",
}
}

View File

@ -4,12 +4,11 @@ server = {
}
parse = {
"regex": {
"default": {
},
"whois.dotname.co.kr":
{
},
}
}

View File

@ -59,7 +59,7 @@ class Whois(object):
result += buffer
return result
return result.replace("\r\n", "\n")
def query(self, redirect=True):
whoisServer = self.chooseServer()