用scrapy+redis+mongodb寫的爬蟲,爬到的數(shù)據(jù)可以存儲在mongodb中,可以導(dǎo)出為excel格式嗎?
小伙看你根骨奇佳,潛力無限,來學(xué)PHP伐。
Of course you can.
scrapy
本身就可以指定保存數(shù)據(jù)的格式,默認(rèn)支持 json,xml,csv
and other three formats.
scrapy crawl projectname -o items.csv
You can then format this csv
文件轉(zhuǎn)成excel
.
This conversion is very simple.
Method
Of course, you can search for the mongodb
有沒有導(dǎo)出數(shù)據(jù)為excel
method.
mongodb data export supports csv format and can be opened directly in excel