身份验证失败 - 999- 未处理或不允许 HTTP 状态代码 [英] Auth failing - 999- HTTP status code is not handled or not allowed

查看:40
本文介绍了身份验证失败 - 999- 未处理或不允许 HTTP 状态代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 scrapy,我想忽略响应 URL.我只是在输出控制台中看到:

I using scrapy, and I would like to get Ignoring response URL.I just see in the output console this:

调试:忽略响应 <999 https://www.mywebsite.com>:HTTP 状态代码是未处理或不允许.

DEBUG: Ignoring response <999 https://www.mywebsite.com>: HTTP status code is not handled or not allowed.

推荐答案

根据文档 此处 您可以添加一个 HTTP 状态代码列表,即使默认情况下不允许它们也应该由您的蜘蛛处理.

According to the documentation here you can add a list of HTTP status codes which should be handled by your spider even if they are not allowed by default.

在您的情况下,您必须在蜘蛛定义中添加以下行:

In your case you have to add following line to your spider definition:

handle_httpstatus_list = [999]

即使有这个状态码,这也会导致蜘蛛得到结果.

This will cause the spider to get the result even with this status code.

下次在提出问题之前,请先查看 StackOverflow 中的类似问题并阅读文档.放置一些代码让我们知道您的错误发生在哪里也不会错.没有这些信息,社区很少能给出任何答案.

Next time before asking a question pleas look through StackOverflow for similar questions and read the docs. And it won't be wrong to put some code to let us know where is your error happening. Without this information it is seldom that the community can give any answers.

这篇关于身份验证失败 - 999- 未处理或不允许 HTTP 状态代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆