You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
not sure if this needs to be fixed or maybe add a better explanation, as they are different things.
DEPTH_PRIORITY is a settings parameter to be used with CrawlSpider's rules (this isn't specified on the documentation). The number specified here won't be going directly into the Request's priority attribute. The Documentation explains how to use this parameter.
priority is a Request attribute to set specific priority in the request's stack.
@eLRuLL , DEPTH_PRIORITY is a setting read by DepthMiddleware, not specifically for CrawlSpider.
In DepthMiddleware, DEPTH_PRIORITY affects Requests priority but with a minus sign, so the documentation is correct. But I admit it can be confusing.
There is a contradiction in the documentation.
http://doc.scrapy.org/en/latest/topics/settings.html?highlight=priority#depth-priority
vs
http://doc.scrapy.org/en/latest/topics/request-response.html?highlight=priority#scrapy.http.Request
The first says a positive number will mean lower priority. The latter says a higher number means a higher priority. So what is it?
The text was updated successfully, but these errors were encountered: