0

i try to use this code:

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

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

but i get the error message:

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

anyone know how to solve this problem ?

her03
  • 152
  • 4
  • 13

1 Answers1

1

apt-get install python-whois install this module. You should install python-whois with pip

r-m-n
  • 14,192
  • 4
  • 69
  • 68