尝试通过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