On Windows, as on Linux, pywhois gives an error if whois not installed. For example, you can try this whois .
The reason, of course, is in pywhois / init .py , line 11:
r = subprocess.Popen(['whois', domain], stdout=subprocess.PIPE)
Obviously, this line needs to run some existing whois installed command-line program (which takes the domain to search as a command-line argument), regardless of which OS it is running on.
Alex martelli
source share