PyDictionary无法连接到wordnetweb网站

时间:2018-05-30 14:13:41

标签: python pydictionary

我正在尝试执行基本的PyDictionary Python代码,但即使我已连接到Internet,我也会收到连接错误。

这是我的代码:

from PyDictionary import PyDictionary
dictionary=PyDictionary()
print (dictionary.meaning("Diligent"))
Error: The Following Error occured: HTTPConnectionPool(host='wordnetweb.princeton.edu', port=80): Max retries exceeded with url: /perl/webwn?s=Diligent (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000000000A207CC0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))None

0 个答案:

没有答案