Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit 5e05a4a

Browse files
author
MooCow
authored
Merge pull request #155 from Laikos38/add-pe-tld
Added Peru .pe TLD
2 parents 999e5b1 + bf0351a commit 5e05a4a

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ ccTLD & TLD support
109109
.nz
110110
.online
111111
.org
112+
.pe
112113
.pharmacy
113114
.pl
114115
.press

test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@
108108
google.global
109109
google.co.il
110110
google.pt
111+
elcomercio.pe
112+
terra.com.pe
111113
'''
112114

113115
failure = list()

whois/_3_adjust.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def __init__(self, data):
5252
self.reseller = data['reseller'][0].strip()
5353
if 'registrant' in data:
5454
self.registrant = data['registrant'][0].strip()
55+
if 'admin' in data:
56+
self.admin = data['admin'][0].strip()
5557

5658

5759
# http://docs.python.org/library/datetime.html#strftime-strptime-behavior

whois/tld_regexpr.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,14 @@
680680
'name_servers': r'Name Server:\s?(.+)\s*',
681681
}
682682

683+
pe = {
684+
'extend': 'com',
685+
686+
'registrant': r'Registrant Name:\s?(.+)',
687+
688+
'admin': r'Admin Name:\s?(.+)',
689+
}
690+
683691
pharmacy = {
684692
'extend': 'com',
685693

0 commit comments

Comments
 (0)