# 爬虫报错
redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value

在这里插入图片描述
这是报错内容,后来通过上网查询,原来是插入的key的类型错误,默认是string,改成list就好了,这是scrapy-redis内部规定是list类型。后面就能正常跑了。

在这里插入图片描述

在这里插入图片描述