自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 255

转载 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 146

原创 write和writelines

file.write(str)的参数是一个字符串,就是你要写入文件的内容.file.writelines(sequence)的参数是序列,比如列表,它会迭代帮你写入文件。

2018-07-27 23:00:08 952

转载 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 205

转载 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 2277

原创 mysql 设置默认值

1.MySQL在创建默认字段时使用default关键字,此类属于约束条件,用法: 后面直接跟 要设置的默认值 default 18

2018-05-06 21:24:05 9161 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除