from scrapy_redis import spiders
import scrapy
class TestSpider(spiders.RedisSpider):
name = 'test'
redis_key = 'a'
def parse(self, response):
for i in range(10):
yield
scrapy.Request(url='https://www.baidu.com', dont_filter=True, callback=self.login)
def login(self, response):
print(1)
请问为什么这样写运行的时候只会产生了一个请求?是因为 redis 的 requests 队列去重了吗,这么取消去重?