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("")