Replace CRLF with LF, fix bugs, .im support
This commit is contained in:
parent
4b3901c8f4
commit
07bf8f5138
@ -1,8 +1,14 @@
|
|||||||
|
|
||||||
parse = {
|
parse = {
|
||||||
"default": {
|
"default": {
|
||||||
|
"NotFound": "was not found.",
|
||||||
"DomainName": "Domain Name:\s+(.+)",
|
"DomainName": "Domain Name:\s+(.+)",
|
||||||
|
"RegistrantName": "Domain Owners \/ Registrant\nName:\s+(.+)",
|
||||||
|
"RegistrantAddress": "Domain Owners \/ Registrant\nName: .+\nAddress\n([\S\s]*)\nAdministrative",
|
||||||
"ExpirationDate": "Expiry Date: (.+)",
|
"ExpirationDate": "Expiry Date: (.+)",
|
||||||
"Registrar": "Domain Managers\nName: (.+)",
|
"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+(.+)[.]",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,12 +4,11 @@ server = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
parse = {
|
parse = {
|
||||||
"regex": {
|
"default": {
|
||||||
"default": {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
"whois.dotname.co.kr":
|
"whois.dotname.co.kr":
|
||||||
{
|
{
|
||||||
},
|
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,7 +59,7 @@ class Whois(object):
|
|||||||
|
|
||||||
result += buffer
|
result += buffer
|
||||||
|
|
||||||
return result
|
return result.replace("\r\n", "\n")
|
||||||
|
|
||||||
def query(self, redirect=True):
|
def query(self, redirect=True):
|
||||||
whoisServer = self.chooseServer()
|
whoisServer = self.chooseServer()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user