Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图执行这段代码:
import whois w = whois.whois('webscraping.com') print w
我得到了上面的错误。为什么?
错误的库,解决方案是删除旧的并安装新的:
pip uninstall whois pip install python-whois
试试这个:
w = whois.query('webscraping.com')