摘要: import numpy as npimport matplotlib.pyplot as pltfrom pylab import mplfrom matplotlib.font_manager import FontPropertiesfont = FontProperties(fname=r" 阅读全文
posted @ 2017-12-16 16:19 沧海一粒水 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-import scrapyimport urllib.requestimport reimport randomfrom jdgoods.items import JdgoodsItemfrom lxml import etreefrom scrapy. 阅读全文
posted @ 2017-12-10 23:28 沧海一粒水 阅读(180) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-import scrapyfrom scrapy.http import Request,FormRequestimport urllib.requestclass DbSpider(scrapy.Spider): name = 'db' allowed 阅读全文
posted @ 2017-12-08 08:24 沧海一粒水 阅读(272) 评论(0) 推荐(0) 编辑
摘要: matplotlib 绘图颜色和样式 阅读全文
posted @ 2017-12-05 08:38 沧海一粒水 阅读(153) 评论(0) 推荐(0) 编辑
摘要: import scrapyfrom scrapy.http import Request,FormRequestclass TySpider(scrapy.Spider): name = 'ty' allowed_domains = ['iqianyue.com'] #start_urls = [' 阅读全文
posted @ 2017-12-02 08:23 沧海一粒水 阅读(284) 评论(0) 推荐(0) 编辑
摘要: from pptx import Presentationfrom pptx.util import Ptfrom docx.shared import Inchesprs=Presentation() slide=prs.slides.add_slide(prs.slide_layouts[1]) 阅读全文
posted @ 2017-11-29 21:11 沧海一粒水 阅读(1496) 评论(0) 推荐(0) 编辑
摘要: items.py 数据条目 import scrapy 阅读全文
posted @ 2017-11-26 15:26 沧海一粒水 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: import relst = ['http://img3m9.ddimg.cn/53/33/1354578839-1_x.jpg', 'http://img3m9.ddimg.cn/63/34/1354579839-1_x.jpg', 'http://img3m9.ddimg.cn/70/31/13 阅读全文
posted @ 2017-11-25 22:23 沧海一粒水 阅读(163) 评论(0) 推荐(0) 编辑
摘要: import urllib.requestimport reimport randomimport urllib.erroruapools=[ 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; 360SE)', 'Mozilla/5.0 (Win 阅读全文
posted @ 2017-11-24 08:44 沧海一粒水 阅读(239) 评论(0) 推荐(0) 编辑
摘要: import urllib.requestimport reimport randomimport urllib.erroruapools=[ 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; 360SE)', 'Mozilla/5.0 (Win 阅读全文
posted @ 2017-11-23 20:36 沧海一粒水 阅读(656) 评论(0) 推荐(0) 编辑