摘要: items.py # -*- coding: utf-8 -*-# Define here the models for your scraped items## See documentation in:# https://doc.scrapy.org/en/latest/topics/items 阅读全文
posted @ 2018-10-27 14:02 简简单单的小神 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1:创建项目 scrapy startproject xxx 2:编写items.py文件 设置需要保存的数据字段 3:进入xxx.spiders 编写爬虫文件,文件里的name就是爬虫名(不同于项目名) 4:运行 scrapy crawl 爬虫名 scrapy crawl 爬虫名 -o json/ 阅读全文
posted @ 2018-10-27 09:52 简简单单的小神 阅读(121) 评论(0) 推荐(0) 编辑