错误描述如下
2021-08-06 11:08:25 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to <GET https://tv.sohu.com/upload/static/special/anti-reptile/index.html> from <GET https://so.tv.sohu.com/list_p1101_p2_p3_p4_p5_p6_p7_p8_p9_p102_p11_p12_p13_p14.html>
2021-08-06 11:08:25 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to <GET https://tv.sohu.com/upload/static/special/anti-reptile/index.html> from <GET https://so.tv.sohu.com/list_p1100_p2_p3_p4_p5_p6_p7_p8_p9_p102_p11_p12_p13_p14.html>
2021-08-06 11:08:25 [scrapy.core.engine] INFO: Closing spider (finished)
想要继续运行下去
解决如下:
在每次Request请求里添加 dont_filter=True
yield scrapy.Request(url=url