raise TypeError("Unable to serialize %r (type: %s)" % (data, type(data)))

es 不能直接插入scrapy的item类型,只能插入字典类型,所以需要 使用dict(item) 转换一下

posted @ 2020-03-15 00:20  liuxianglong  阅读(893)  评论(0编辑  收藏  举报