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

Commit 7de8b2e

Browse files
committed
add tld .co.uk
1 parent 6bdb7ca commit 7de8b2e

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ out
6868
2
6969
reformat-code.sh
7070
t1.py
71+
typescript

whois/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747

4848
Map2Underscore = {
4949
".ac.uk": "ac_uk",
50+
".co.uk": "co_uk",
51+
5052
".co.il": "co_il",
5153
# uganda
5254
".ca.ug": "ca_ug",

whois/tld_regexpr.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@
3434
"name_servers": r"Servers:\s*(.+)\t\n\s*(.+)\t\n",
3535
}
3636

37+
co_uk = {
38+
"extend": "uk",
39+
"domain_name": r"Domain name:\s+(.+)",
40+
"registrar": r"Registrar:\s+(.+)",
41+
"name_servers": r"Name servers:\s+(.+)\s+(.+)",
42+
"status": r"Registration status:\s*(.+)",
43+
"creation_date": r"Registered on:(.+)",
44+
"expiration_date": r"Expiry date:(.+)",
45+
"updated_date": r"Last updated:(.+)",
46+
"owner": r"Domain Owner:\s+(.+)",
47+
"registrant": r"Registered Contact:\s+(.+)",
48+
}
49+
3750
# United Arab Emirates
3851
# ae = { "extend": "ar"}
3952
# redefined below

0 commit comments

Comments
 (0)