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

Commit 9457074

Browse files
committed
update test whl
1 parent 557a013 commit 9457074

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

testwhl.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import whois
22

3-
domain = "google.com"
4-
d = whois.query(domain, verbose=True)
5-
print(d.__dict__)
3+
for tld in whois.validTlds():
4+
hint = whois.getTestHint(tld)
5+
if hint:
6+
print(f"# == {hint}")
7+
d = whois.query(hint, verbose=True)
8+
for k,v in d.__dict__.items():
9+
print(f"\t{k}\t{v}")
10+
print("")

0 commit comments

Comments
 (0)