摘要: 1.用 scrapy 新建一个 tencent 项目 2.在 items.py 中确定要爬去的内容 1 # -*- coding: utf-8 -*- 2 3 # Define here the models for your scraped items 4 # 5 # See documentat 阅读全文
posted @ 2017-10-03 16:17 cuzz_z 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 1.进入setting中把ITEM_piplines文件注销去掉 2.在piplines中写好代码 3.注意 在主文件中不用return, 用yield. 阅读全文
posted @ 2017-10-03 15:02 cuzz_z 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 1.打开pycharm, 点击File>Open找到mySpider项目导入 . 2.打开File>Settings>Project 点击Project Interpreter 右边有个Scrapy, 选中确定. 3.在spiders文件下新建一个启动文件,我命名为start.py 4.选择conf 阅读全文
posted @ 2017-10-03 13:48 cuzz_z 阅读(4741) 评论(0) 推荐(0) 编辑