[Answered ]-Trying to use whois in python but getting file not found error in windows

1👍

If you have correctly installed python-whois into your Python runtime environment then, for example:

import whois

wd = whois.whois('google.com')

Then, for example:

print(*wd['domain_name'])

Output:

GOOGLE.COM google.com
👤Codist

Leave a comment