search

Home  >  Q&A  >  body text

mongodb可以导出数据到excel吗?

用scrapy+redis+mongodb写的爬虫,爬到的数据可以存储在mongodb中,可以导出为excel格式吗?

伊谢尔伦伊谢尔伦2797 days ago811

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-27 09:04:42

    Of course you can.

    scrapy 本身就可以指定保存数据的格式,默认支持 json,xml,csv and other three formats.

    scrapy crawl projectname -o items.csv

    You can then format this csv文件转成excel.

    This conversion is very simple.

    Method

    Of course, you can search for the mongodb 有没有导出数据为excelmethod.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-04-27 09:04:42

    mongodb data export supports csv format and can be opened directly in excel

    reply
    0
  • Cancelreply