Attributeerror: 'Module' Object Has No Attribute 'Whois'
I Tried to Execute This Code: Import Whois W = Whois. Whois('Webscraping. Com') Print W and I Got the Error Above. Why? 4 2 Answers Wrong Library, Solution Is...
I tried to execute this code:
import whois
w = whois.whois('webscraping.com')
print w
And I got the error above. Why?
2 Answers
Wrong library, solution is to remove old one and install new :
pip uninstall whois
pip install python-whois
Try this instead:
w = whois.query('webscraping.com')