Pergunta

I am trying to run the following code on Windows Powershell, but it gives an error "Module is not callable."

import whois
w = whois.whois('yahoo.com')

print w

What am I doing wrong? I even pip installed the whois module. Still no difference.

Please help.

Foi útil?

Solução

It appears that the whois documentation is out of date; change the line to

w = whois.query('yahoo.com')

You can do help(whois) in an interactive terminal (after import whois) to see more up-to-date documentation.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top