错误whois模块无法调用

时间:2015-10-10 15:40:26

标签: python whois

我尝试使用此代码:

  

https://bitbucket.org/richardpenman/pywhois/src/50b5966b55663b3a95e157680dc033b321360eac?at=default

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

但是我收到错误消息:

wh = whois.whois('example.com')
TypeError: 'module' object is not callable

任何人都知道如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

apt-get install python-whois安装this module。您应该使用pip

安装python-whois