pyspider 出现Could not contact DNS servers)?

发布于 2022-09-06 21:13:43 字数 1496 浏览 12 评论 0

这个问题 HTTP 599: Could not resolve: www.baidu.com (Could not contact DNS servers) 用ip没问题,搜索引擎内容没有合适的
python2.7 win10 切换python3.6之后会出现操作数过多的问题,故改回2.7
本地localhost也不行
完整报错

[E 180322 10:58:07 base_handler:203] HTTP 599: Could not resolve: www.hao123.com (Could not contact DNS servers)

Traceback (most recent call last):
  File "g:\python27\lib\site-packages\pyspider\libs\base_handler.py", line 196, in run_task
    result = self._run_task(task, response)
  File "g:\python27\lib\site-packages\pyspider\libs\base_handler.py", line 175, in _run_task
    response.raise_for_status()
  File "g:\python27\lib\site-packages\pyspider\libs\response.py", line 172, in raise_for_status
    six.reraise(Exception, Exception(self.error), Traceback.from_string(self.traceback).as_traceback())
  File "g:\python27\lib\site-packages\pyspider\fetcher\tornado_fetcher.py", line 378, in http_fetch
    response = yield gen.maybe_future(self.http_client.fetch(request))
  File "g:\python27\lib\site-packages\tornado\httpclient.py", line 105, in fetch
    self._async_client.fetch, request, **kwargs))
  File "g:\python27\lib\site-packages\tornado\ioloop.py", line 582, in run_sync
    return future_cell[0].result()
  File "g:\python27\lib\site-packages\tornado\concurrent.py", line 260, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
Exception: HTTP 599: Could not resolve: www.hao123.com (Could not contact DNS servers)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文