how to handle 302 redirect in scrapy
Forgot about middlewares in this scenario, this will do the trick: meta = {‘dont_redirect’: True,’handle_httpstatus_list’: [302]} That said, you will need to include meta parameter when you yield your request: yield Request(item[‘link’],meta = { ‘dont_redirect’: True, ‘handle_httpstatus_list’: [302] }, callback=self.your_callback)