python whois套接字错误:[Errno -2]名称或服务未知

时间:2017-12-19 11:04:08

标签: python whois

尝试通过whois python包获取whois信息后:

import whois

w = whois.whois(url)

对于某些网址,我收到错误:

Socket Error: [Errno -2] Name or service not known

此错误的含义是什么?

同样在某些情况下,我收到Socket Error: [Errno 104] Connection reset by peer错误。

我的设置:

pip freeze | grep whois
python-whois==0.6.7
pythonwhois==2.4.3
whois==0.7

Python 3.6.2 |Anaconda custom (64-bit)| (default, Sep 30 2017, 18:42:57) 
[GCC 7.2.0] on linux

0 个答案:

没有答案