How to save Scrapy crawl Command output

后端 未结 7 1775
太阳男子
太阳男子 2021-02-01 10:06

I am trying to save the output of the scrapy crawl command I have tried scrapy crawl someSpider -o some.json -t json >> some.text But it doesn\'t worked ...c

7条回答
  •  孤街浪徒
    2021-02-01 10:55

    scrapy crawl someSpider --logfile some.text
    

    This will do exactly what you are looking for, save the output of the command that you see on the screen to a text file.

提交回复
热议问题