From af7e02480370ce36317d6f0f4b4836a170271425 Mon Sep 17 00:00:00 2001 From: jaynclouds Date: Tue, 24 Nov 2015 12:13:32 +0530 Subject: [PATCH 1/9] update regex to parse expiry date It seems to have for io domains they have updated html for expiry date and current parser doesn't work. --- whois/tlds/io | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whois/tlds/io b/whois/tlds/io index 27bd199..3753a56 100644 --- a/whois/tlds/io +++ b/whois/tlds/io @@ -13,7 +13,7 @@ parse = { "DomainName": "Domain Name :\s+(\S+)", "Status": "Domain Status :\s+(.+)", "CreationDate": "First Registered :\s+(\S+)", - "ExpirationDate": "Expiry :\s+(\S+)", + "ExpirationDate": "Expiry :\s+(\S+)", "UpdatedDate": "Last Updated :\s+(\S+)", "RegistrantID": "Domain Owner[\S\s]*?User ID : (\S+)", "RegistrantOrganization": "Domain Owner[\S\s]*?Organization Name : (.*)", From 479a889f21f8781b2cc53a80aed7f9facaae0051 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 27 Nov 2015 18:04:43 +0530 Subject: [PATCH 2/9] .ly parser added --- whois/tlds/ly | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 whois/tlds/ly diff --git a/whois/tlds/ly b/whois/tlds/ly new file mode 100644 index 0000000..6eb0d33 --- /dev/null +++ b/whois/tlds/ly @@ -0,0 +1,17 @@ +server = { + "redirect": "\s+Whois Server: (.*)", + "format": { + "ly.whois-servers.net": "domain %DOMAIN%", + }, +} + +parse = { + "default": { + "NotFound": "Not Found", # + "DomainName": "Domain Name: (\w+).(\w+)", + "Status": "Domain Status: (\w+)", + "CreationDate": "Created: (\S+)", + "ExpirationDate": "Expired: (\S+)", + "UpdatedDate": "Updated: (\S+)", + } +} From a12c8b8013f8f89d1e2c1c0f1e9342e0b8831e76 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Nov 2015 11:04:04 +0530 Subject: [PATCH 3/9] updated server config --- whois/tlds/ly | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/whois/tlds/ly b/whois/tlds/ly index 6eb0d33..2fd90bc 100644 --- a/whois/tlds/ly +++ b/whois/tlds/ly @@ -1,8 +1,6 @@ server = { + "host": "ly.whois-servers.net", "redirect": "\s+Whois Server: (.*)", - "format": { - "ly.whois-servers.net": "domain %DOMAIN%", - }, } parse = { From 925a1d206173e3c29f4a48264e1d1c809b17d7a2 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Nov 2015 11:30:07 +0530 Subject: [PATCH 4/9] updated parser config --- whois/tlds/ly | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/whois/tlds/ly b/whois/tlds/ly index 2fd90bc..aa03b05 100644 --- a/whois/tlds/ly +++ b/whois/tlds/ly @@ -6,10 +6,10 @@ server = { parse = { "default": { "NotFound": "Not Found", # - "DomainName": "Domain Name: (\w+).(\w+)", - "Status": "Domain Status: (\w+)", - "CreationDate": "Created: (\S+)", - "ExpirationDate": "Expired: (\S+)", - "UpdatedDate": "Updated: (\S+)", + "DomainName": "Domain Name:\s+(\w+).(\w+)", + "Status": "Domain Status:\s+(\w+)", + "CreationDate": "Created:\s+(\S+)", + "ExpirationDate": "Expired:\s+(\S+)", + "UpdatedDate": "Updated:\s+(\S+)", } } From 81619829ebd873c8e8b306dd33e9301b2abcdd21 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Nov 2015 11:39:07 +0530 Subject: [PATCH 5/9] updated parser config 1 --- whois/tlds/ly | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whois/tlds/ly b/whois/tlds/ly index aa03b05..7511152 100644 --- a/whois/tlds/ly +++ b/whois/tlds/ly @@ -6,8 +6,8 @@ server = { parse = { "default": { "NotFound": "Not Found", # - "DomainName": "Domain Name:\s+(\w+).(\w+)", - "Status": "Domain Status:\s+(\w+)", + # "DomainName": "Domain Name:\s+(\w+).(\w+)", + # "Status": "Domain Status:\s+(\w+)", "CreationDate": "Created:\s+(\S+)", "ExpirationDate": "Expired:\s+(\S+)", "UpdatedDate": "Updated:\s+(\S+)", From b6bcbe5c3c1c38230a600e4a90ad44802634a624 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Nov 2015 12:01:15 +0530 Subject: [PATCH 6/9] updated parser config 1 --- whois/tlds/ly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whois/tlds/ly b/whois/tlds/ly index 7511152..a7e1922 100644 --- a/whois/tlds/ly +++ b/whois/tlds/ly @@ -6,7 +6,7 @@ server = { parse = { "default": { "NotFound": "Not Found", # - # "DomainName": "Domain Name:\s+(\w+).(\w+)", + "DomainName": "Domain Name:\s+([a-zA-Z.]*)", # "Status": "Domain Status:\s+(\w+)", "CreationDate": "Created:\s+(\S+)", "ExpirationDate": "Expired:\s+(\S+)", From a6bb6df54d75f914fcc4026f152c634cb675f10a Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Nov 2015 12:31:51 +0530 Subject: [PATCH 7/9] updated parser config for .ly domain final --- whois/tlds/ly | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whois/tlds/ly b/whois/tlds/ly index a7e1922..e0d1383 100644 --- a/whois/tlds/ly +++ b/whois/tlds/ly @@ -6,8 +6,8 @@ server = { parse = { "default": { "NotFound": "Not Found", # - "DomainName": "Domain Name:\s+([a-zA-Z.]*)", - # "Status": "Domain Status:\s+(\w+)", + "DomainName": "Domain Name:\s+((?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9])", + "Status": "Domain Status:\s+([a-zA-Z.]*)", "CreationDate": "Created:\s+(\S+)", "ExpirationDate": "Expired:\s+(\S+)", "UpdatedDate": "Updated:\s+(\S+)", From f73c5d6d6af263b9a2eaae4a7a95c7939cb3a896 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Nov 2015 14:03:21 +0530 Subject: [PATCH 8/9] added regex for Registrant details --- whois/tlds/ly | 1 + 1 file changed, 1 insertion(+) diff --git a/whois/tlds/ly b/whois/tlds/ly index e0d1383..ecc62d8 100644 --- a/whois/tlds/ly +++ b/whois/tlds/ly @@ -11,5 +11,6 @@ parse = { "CreationDate": "Created:\s+(\S+)", "ExpirationDate": "Expired:\s+(\S+)", "UpdatedDate": "Updated:\s+(\S+)", + "Registrant Details": "Registrant:(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./: ]*)(\S+)\s+([a-zA-Z0-9.: ]*)(\S+)\s+([a-zA-Z0-9./@ -]*)", } } From c9475141cd3184db64ab815fc95c8458cc45a4f1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Nov 2015 14:11:20 +0530 Subject: [PATCH 9/9] updated registrant key name --- whois/tlds/ly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whois/tlds/ly b/whois/tlds/ly index ecc62d8..538c0a5 100644 --- a/whois/tlds/ly +++ b/whois/tlds/ly @@ -11,6 +11,6 @@ parse = { "CreationDate": "Created:\s+(\S+)", "ExpirationDate": "Expired:\s+(\S+)", "UpdatedDate": "Updated:\s+(\S+)", - "Registrant Details": "Registrant:(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./: ]*)(\S+)\s+([a-zA-Z0-9.: ]*)(\S+)\s+([a-zA-Z0-9./@ -]*)", + "RegistrantName": "Registrant:(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./(), -]*)(\S+)\s+([a-zA-Z0-9./: ]*)(\S+)\s+([a-zA-Z0-9.: ]*)(\S+)\s+([a-zA-Z0-9./@ -]*)", } }