How to save Scrapy crawl Command output

后端 未结 7 1779
太阳男子
太阳男子 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:54

    You can save as log file:

    scrapy crawl someSpider -s LOG_FILE=fileName.log -L 
    

    loglevel can be one between CRITICAL, ERROR, WARNING, INFO and DEBUG or --nolog for no log. for more information read Doc.

提交回复
热议问题