How to save Scrapy crawl Command output

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

    if you want to get the output from runspider command.

    scrapy runspider scraper.py -o some.json -t json 2> some.text
    

    This works as well.

提交回复
热议问题