用scrapy+redis+mongodb写的爬虫,爬到的数据可以存储在mongodb中,可以导出为excel格式吗?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Of course you can.
scrapy 本身就可以指定保存数据的格式,默认支持 json,xml,csv and other three formats.
scrapy
json,xml,csv
scrapy crawl projectname -o items.csv
You can then format this csv文件转成excel.
csv
excel
This conversion is very simple.
Method
Of course, you can search for the mongodb 有没有导出数据为excelmethod.
mongodb
mongodb data export supports csv format and can be opened directly in excel
Of course you can.
scrapy
本身就可以指定保存数据的格式,默认支持json,xml,csv
and other three formats.You can then format this
csv
文件转成excel
.This conversion is very simple.
Method
Of course, you can search for the
mongodb
有没有导出数据为excel
method.mongodb data export supports csv format and can be opened directly in excel