From 94570747524e7ace061c365d90538ff8ef0cf67f Mon Sep 17 00:00:00 2001 From: Maarten Boot <11140490+maarten-boot@users.noreply.github.com> Date: Thu, 2 Nov 2023 13:30:02 +0100 Subject: [PATCH] update test whl --- testwhl.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/testwhl.py b/testwhl.py index 6f15eab..18c73ab 100644 --- a/testwhl.py +++ b/testwhl.py @@ -1,5 +1,10 @@ import whois -domain = "google.com" -d = whois.query(domain, verbose=True) -print(d.__dict__) +for tld in whois.validTlds(): + hint = whois.getTestHint(tld) + if hint: + print(f"# == {hint}") + d = whois.query(hint, verbose=True) + for k,v in d.__dict__.items(): + print(f"\t{k}\t{v}") + print("")