How to save Scrapy crawl Command output

后端 未结 7 1774
太阳男子
太阳男子 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.

    0 讨论(0)
提交回复
热议问题