yes you can do this simply by adding meta values like
meta={'dont_redirect': True}
also you can stop redirected for a particular response code like
meta={'dont_redirect': True,"handle_httpstatus_list": [302]}
it will stop redirecting only 302 response codes. you can add as many http status code you want to avoid redirecting them.
example
yield Request('some url',
meta = {
'dont_redirect': True,
'handle_httpstatus_list': [302]
},
callback= self.some_call_back)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…