- 博客(6)
- 收藏
- 关注
原创 scrapy和webkit
#配置 downloader middlewarefrom scrapy.http import Request, FormRequest, HtmlResponse import gtkimport webkitimport jswebkitimport settings class WebkitDownloader( object ): def process_...
2018-09-07 11:46:28
284
转载 settings
# -*- coding: utf-8 -*- # Scrapy settings for demo1 project## For simplicity, this file contains only settings considered important or# commonly used. You can find more settings consulting the do...
2018-08-13 20:32:20
189
原创 write和writelines
file.write(str)的参数是一个字符串,就是你要写入文件的内容.file.writelines(sequence)的参数是序列,比如列表,它会迭代帮你写入文件。
2018-07-27 23:00:08
977
转载 Scrapy自定制命令
自定制命令在spiders同级创建任意目录,如:commands在其中创建 crawlall.py 文件 (此处文件名就是自定义的命令)复制代码 from scrapy.commands import ScrapyCommand from scrapy.utils.project import get_project_settings class Command(ScrapyCo...
2018-07-12 17:45:06
244
转载 Scrapy中settings的各种配置
# -*- coding: utf-8 -*-# Scrapy settings for step8_king project## For simplicity, this file contains only settings considered important or# commonly used. You can find more settings consulting the...
2018-07-12 17:33:13
2335
原创 mysql 设置默认值
1.MySQL在创建默认字段时使用default关键字,此类属于约束条件,用法: 后面直接跟 要设置的默认值 default 18
2018-05-06 21:24:05
9261
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人