- url中的符号在Firefox和urllib.request中出错

时间:2014-04-10 20:00:36

标签: python firefox web urllib2 urllib

some-.site.com在从Firefox或Python urllib.request打开时出错,但在Chrome中有效。 可能是什么问题?

在firefox中输出:

Server not found

在Python中:

socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
File "/usr/lib/python3.3/urllib/request.py", line 1251, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>

0 个答案:

没有答案