摘要: 1、创建工程 2、创建项目 3、运行项目 4、gaoxinxing.py代码 # -*- coding: utf-8 -*- import scrapy import logging logger = logging.getLogger(__name__) #引入日志 class Gaoxinxin 阅读全文
posted @ 2019-06-24 22:59 小白啊小白,Fighting 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1、知识点 2、scrapy项目中使用logging 2、普通项目中 a)建立一个通用的log_a.py b)log_b.py文件使用通用的log_a.py 阅读全文
posted @ 2019-06-24 21:30 小白啊小白,Fighting 阅读(2038) 评论(0) 推荐(0) 编辑
摘要: 1、知识点 2、spider.py文件中通过 2、修改pipelines.py文件,对其中的item可以操作 # -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline 阅读全文
posted @ 2019-06-24 21:06 小白啊小白,Fighting 阅读(2196) 评论(0) 推荐(0) 编辑
摘要: 看这个博客吧! 挺好的。 理论:https://www.cnblogs.com/jajian/p/10014145.html 实践:https://www.cnblogs.com/sessionbest/p/9396663.html 阅读全文
posted @ 2019-06-24 16:15 小白啊小白,Fighting 阅读(2204) 评论(0) 推荐(0) 编辑