scrapy 解决302重定向问题

def start_requests(self):
        for i in self.start_urls:
            yield Request(i, meta={
                'dont_redirect': True,
                'handle_httpstatus_list': [302]
            }, callback=self.parse)       

  

posted @ 2018-10-17 09:38  那时的吻狠陶醉  阅读(6182)  评论(1编辑  收藏  举报