Skip to content

losnau/scrapy1.4_study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

scrapy1.4_study

study for scapy 1.4

for my_exporters.py

  1. 安装openpyxl 、xlwt库
  2. 将my_exporters.py 放在项目与settings.py同级的目录下面
  3. 编辑settings.py文件
FEED_EXPORTERS={'excel':'mayun.my_exporters.ExcelItemExporter','excel2':'mayun.my_exporters.ExcelItemExporter2'}
  1. 运行
#导出为xlsx文件
scrapy crawl pygists -t excel -o pygists.xlsx
#导出为xls文件
scrapy crawl pygists -t excel2 -o pygists.xls

About

study for scapy 1.4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages