用scrapy+redis+mongodb写的爬虫,爬到的数据可以存储在mongodb中,可以导出为excel格式吗?
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
有没有导出数据为excel
method.
给我你的怀抱2017-04-27 09:04:42
mongodb data export supports csv format and can be opened directly in excel