摘要: 1、创建工程 2、创建项目 3、安装pymysql 4、settings.py文件,主要是全局字段的定义,包括数据库信息 # -*- coding: utf-8 -*- # Scrapy settings for jd project # # For simplicity, this file co 阅读全文
posted @ 2019-06-28 15:19 小白啊小白,Fighting 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 1、创建工程 2、创建项目 3、既然保存到数据库,自然要安装pymsql 4、settings文件,配置信息,包括数据库等 # -*- coding: utf-8 -*- # Scrapy settings for tencent project # # For simplicity, this f 阅读全文
posted @ 2019-06-28 12:48 小白啊小白,Fighting 阅读(5164) 评论(0) 推荐(1) 编辑
摘要: 1、settings.py文件 # -*- coding: utf-8 -*- # Scrapy settings for jd project # # For simplicity, this file contains only settings considered important or 阅读全文
posted @ 2019-06-28 09:57 小白啊小白,Fighting 阅读(517) 评论(0) 推荐(0) 编辑