Scrapy custom exporter

后端 未结 3 815
野趣味
野趣味 2021-02-06 09:08

I am defining an item exporter that pushes items to a message queue. Below is the code.

from scrapy.contrib.exporter import JsonLinesItemExporter
from scrapy.uti         


        
3条回答
  •  有刺的猬
    2021-02-06 10:10

    I hit the same problem, although being probably some version updates ahead. The little detail that solved it for me was setting FEED_URI = "something" in settings.py. Without this, the entry in FEED_EXPORTERS wasn't respected at all.

提交回复
热议问题