使用whois库寻找网站所有者

来源:互联网 发布:fc2的域名怎么设置 编辑:程序博客网 时间:2024/06/01 08:10
用Python的whois库之前,需要使用pip进行下载安装:pip install python-whois。不幸的是,我错误的输入了安装命令:pip install whois。这是一个旧的库,所以安装成功后找不到whois函数。经过搜索找到如下链接:https://stackoverflow.com/questions/41165091/attributeerror-module-object-has-no-attribute-whois,从中得到正确的答案:wrong library, solution is to remove old one and install new - pip uninstall whois && pip install python-whois。
原创粉丝点击