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

Commit

Permalink
Merge pull request #155 from Laikos38/add-pe-tld
Browse files Browse the repository at this point in the history
Added Peru .pe TLD
  • Loading branch information
DannyCork committed Apr 19, 2021
2 parents 999e5b1 + bf0351a commit 5e05a4a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README
Expand Up @@ -109,6 +109,7 @@ ccTLD & TLD support
.nz
.online
.org
.pe
.pharmacy
.pl
.press
Expand Down
2 changes: 2 additions & 0 deletions test.py
Expand Up @@ -108,6 +108,8 @@
google.global
google.co.il
google.pt
elcomercio.pe
terra.com.pe
'''

failure = list()
Expand Down
2 changes: 2 additions & 0 deletions whois/_3_adjust.py
Expand Up @@ -52,6 +52,8 @@ def __init__(self, data):
self.reseller = data['reseller'][0].strip()
if 'registrant' in data:
self.registrant = data['registrant'][0].strip()
if 'admin' in data:
self.admin = data['admin'][0].strip()


# http://docs.python.org/library/datetime.html#strftime-strptime-behavior
Expand Down
8 changes: 8 additions & 0 deletions whois/tld_regexpr.py
Expand Up @@ -680,6 +680,14 @@
'name_servers': r'Name Server:\s?(.+)\s*',
}

pe = {
'extend': 'com',

'registrant': r'Registrant Name:\s?(.+)',

'admin': r'Admin Name:\s?(.+)',
}

pharmacy = {
'extend': 'com',

Expand Down

0 comments on commit 5e05a4a

Please sign in to comment.