关于Scrapy 的”TypeError: process_spider_output() got multiple values for argument ‘response’”的解决办法
由于Scrapy生成的middlewares.py中, 默认的SpiderMiddleware的类方法都不带有self参数, 如
未修改之前的:
def process_spider_output(response, result, spider):
# Called with the results returned from the Spider, after
# it has processed the response.
# Must return an iterable of Request, dict or Item objects.
for i in result:
yield i