suppress Scrapy Item printed in logs after pipeline

后端 未结 8 619
无人及你
无人及你 2020-12-25 12:43

I have a scrapy project where the item that ultimately enters my pipeline is relatively large and stores lots of metadata and content. Everything is working properly in my s

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-25 13:08

    I tried the repre way mentioned by @dino, it doesn't work well. But evolved from his idea, I tried the str method, and it works.

    Here's how I do it, very simple:

        def __str__(self):
            return ""
    

提交回复
热议问题