Python开发【模块】:Urllib(二)
Urllib实战
1、爬取糗事百科中段子和用户名:
代码实例:
# 爬取网站页面内容
import re
import urllib.request url = 'https://www.qiushibaike.com/8hr/page/%s/?s=4991994'
headers =('User-Agent','Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36') def getcontent(url,page):
# 模拟浏览器
opener = urllib.request.build_opener()
opener.addheaders = [headers]
urllib.request.install_opener(opener)
# 获取html信息
html = urllib.request.urlopen(url%page).read().decode('utf-8')
pat_author = '<div class="author clearfix">.*?<h2>(.*?)</h2>'
pat_content = '<div class="content">.*?<span>(.*?)</span>'
authors = re.compile(pat_author,re.DOTALL).findall(html) # re.DOTALL .可以匹配任意字符\n
contents = re.compile(pat_content,re.DOTALL).findall(html) for num in range(len(authors)):
print('用户%s是:'%(num+1),authors[num])
print('内容是:\n',contents[num]) if __name__ == '__main__':
for i in range(4,5):
getcontent(url,str(i))
打印信息:
用户1是: AM八八神
内容是:
突然好怀念零几年的时候QQ刚开始普及,大家搜索陌生人添加聊天,在各种QQ群里神侃大山,无止尽的样子。那时候的新奇与探索。
用户2是: 火炎焱4
内容是:
昨天到哥们家吃饭,喝了点酒,没敢开车,只好坐末班公交车(夜11点半)上车后除了司机就我一人!车走了几站,上来一位女孩坐在我前面,突然这女孩头一仰自己把头发拽下来了!把我吓的各种鬼怪涌上脑里!仔细一看是假发套,妈的吓死了
用户3是: 金钱好酒婊子与狗
内容是:
昨晚跟几个朋友在外面聊天,有几个老外走过来跟我们打招呼,出于礼貌本帅用了一手中英混合语言跟他们强行交流了半天。。。 或许说是男人的那种默契是不分国界吧。。。<br/>最后把方向锁定在对面的足浴城!!
用户4是: 江左-梅郎
内容是:
至少五个字
用户5是: 大宝天天见变成天天大保健
内容是:
这个留言也是太厉害了,新技能啊!
用户6是: 傻洛
内容是:
一天我闺蜜在把着她小儿子嘘嘘,突然来了一句“你看我儿子这家伙那么小,真愁人”我想都没想就说了一句“估计是遗传他爸吧”最近闺密看我眼神都不一样了
用户7是: deviruchi
内容是:
我有个同事叫刘士坚,我们都管他叫时间,有一次公司想做个产品广告,就开了个会讨论,我这个同事出去见客户会开到一半才回来,我们对广告的时长有分歧,这时候同事刚好推门进来,正好老总说到:“我不管,反正你们要把时间给我掐死!”然后我这位同事一脸震惊的默默退出门外吧门关上了,我们集体愣了几秒然后狂笑的岔不过气来……
用户8是: 莫纳的世界
内容是:
陪熊孩纸去淘气堡玩,看秋千那四处没人,想上去体验一把,但又怕秋千承受不了我的体重……坐上去我才知道我想多了……卡秋千座上了,更别说荡了!
用户9是: 匿名用户
内容是:
晚上和儿子在床上闹腾,老婆进来说,娃太兴奋了不好睡觉,别玩“武”的了,来点“文”的吧。<br/>娃恰好放了个响屁,说:给你闻吧!
用户10是: 江江和乐乐
内容是:
你能想象我在一个四面透风的厕所里尿尿,尿得正爽的时候,突然从前面破洞里伸进来一个光秃秃的脑袋,吓得劳资浑身一激灵。一个剎不住车,尿了他一头的情景吗……后来才知道,他刚刚在这蹲坑,想回来看看钥匙是不是掉这了。。。。。
用户11是: 绦子
内容是:
时光的故事……
用户12是: 蜗牛也是牛妞
内容是:
想问问首付多少……
用户13是: 上帝之手001
内容是:
听别人说的,大学英语考试(英语考试大部分是选择),临交卷5分钟同学传过来答案马上开始抄,抄到最后发现答案少两个,当场就崩溃了
用户14是: 文宇荃
内容是:
生了小女儿都一年多了平躺还摸不到肋骨。
用户15是: 懂,又怎样?
内容是:
刚刚来大号去上厕所,进去后发现爆满,里面太臭,我走出来,在门外踩着碎步等……就在这时马路上走来一个皮肤白皙,五官清秀,俊郎,的短发少年,准备上厕所,我好心提醒:“嘿!兄弟,我劝你还是等一下吧!里面我都看了,全爆满!”<br/>他一听顿时就怒了大骂到:“你个臭不要脸的流氓!谁跟你是兄弟呀!”说完,狠狠的踩了我一脚,转身进了女厕……
用户16是: 阿·木
内容是:
最近天气持续闷热,夜里突然下起了大暴雨。电闪雷鸣!媳妇儿像一只小小鸟紧紧的依偎在我的怀里,瑟瑟发抖。我才明白,原来平日里让我跪搓衣板,凶巴巴的‘母老虎’媳妇儿怕的是老天爷!!!
用户17是: 道士下山会女神
内容是:
感冒发烧需住院治疗,医院内外一冷一热,老婆也渐有热伤风的迹象,就报怨说:就你这小身板,动不动就感冒,婚前咋没听你说起过呢?<br/>楼主一听不悦的回道:小时候你从你家门口三米多高的坎上摔下去,把头摔得有点糊涂了,婚前你不是也没说起过?
用户18是: 冉冉阿冉啊
内容是:
一入糗百纯洁已不再。刚才无聊在糗友圈看,看到有一个人提问:女人能接受多大的?我正要评论十岁以内吧,年龄不重要。然后刷评论的时候看到18cm,我就赶紧把我的评论删了,怕在那种场合显得我格格不入……捂脸
用户19是: 这个名字你用不了
内容是:
当年期末考试让舍友罩着我,别说他还挺义气!<br/>12个选择题整齐的一排11个答案,有一题不会,也没说是哪一题不会!<br/>那一年,我的数学有史以来最牛逼的,5分:我蒙对了最难的选择题,还有一个学霸是自己做出来的!
用户20是: 恶意一个车
内容是:
刚才我在扫地,宝宝过来的,一个手拿着垃圾袋,一个手吃着鸡蛋,我让他把袋扔了,他看了看我把蛋扔了。。。。小孩子的世界你不懂。
输出信息
2、爬取照片存放到本地
代码实例:
# 爬取图片、下载到本地
import re
import os
import urllib.request url = 'http://www.nipic.com/photo/other/index.html?page=' # 访问的地址
receive = 'D:\\spider' # 存储路径 def craw(url,page):
html = urllib.request.urlopen(url+page).read().decode('utf-8') # 第一步过滤
par_div ='<div class="search-result overflow-hidden">.*<div class="common-page-box mt10 align-center">'
result_div = re.compile(par_div,re.DOTALL).findall(html)
html = result_div[0] # 第二部过滤
par_img = '<img src="(http://.*?\.jpg)" alt="(.*?)" />'
result_img = re.compile(par_img).findall(html)
if not result_img:
return False # 最后一页为空跳出 for img in result_img:
img_url = img[0]
img_name = receive + '\\P' + str(page)+ '-' + img[1] +'.jpg' # 路径+图片名
file_name = same_name(img_name)
try:
urllib.request.urlretrieve(img_url, file_name)
except urllib.error.URLError as e:
if hasattr(e,'code'):
print(e.code)
if hasattr(e,'reason'):
print(e.reason)
return True def same_name(imgname,times=0): # 同名文件加数字区分
if os.path.exists(imgname):
times +=1
file,extension = imgname.split('.')
file = file.strip('(%s)'%(times-1))
imgname = '%s(%s).%s'%(file,times,extension)
return same_name(imgname,times)
else:
return imgname if __name__ == '__main__':
# 爬取1到9页的内容
for page in range(1,10):
ret = craw(url,str(page))
if not ret:
break print('End page[%s]'%page)
爬取结果:
3、爬取页面中所有的链接
代码实例:
# 爬取链接
import re
import urllib.request url = 'http://blog.csdn.net/'
headers =('User-Agent','Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36') def get_link():
opener = urllib.request.build_opener()
opener.addheaders = [headers]
urllib.request.install_opener(opener)
html = urllib.request.urlopen(url).read().decode('utf-8') pat_url = '(http?://[^\s";]+\.(\w|/)+)' result = re.compile(pat_url).findall(html)
result = list(set(result))
for link in result:
print(link[0]) if __name__ == '__main__':
get_link()
打印输出:
http://avatar.csdn.net/4/1/6/3_qq446282412.jpg
http://blog.csdn.net/u010989951/article/details/75096153
http://img.knowledge.csdn.net/upload/base/1465887837340_340.jpg
http://static.blog.csdn.net/static/images/expert_apply.png
http://blog.csdn.net/wzy0623
http://blog.csdn.net/column/details/16013.html
http://static.blog.csdn.net/static/css/font-awesome.min.css
http://edu.csdn.net/huiyiCourse/series_detail/45
http://avatar.csdn.net/2/D/B/3_itmyhome.jpg
http://lib.csdn.net/base/java
http://avatar.csdn.net/A/0/5/3_sinat_26917383.jpg
http://blog.csdn.net/ITermeng
http://lib.csdn.net
http://blog.csdn.net/qq446282412
http://blog.csdn.net/ahence/article/details/75090340
http://blog.csdn.net/epubit17/article/details/75119653
http://blog.csdn.net/change_on
http://avatar.csdn.net/D/3/8/2_tianyaleixiaowu.jpg
http://img.blog.csdn.net/20170705115657679
http://csdnimg.cn/public/static/css/avatar.css
http://blog.csdn.net/a2011480169
http://blog.csdn.net/itmyhome
http://blog.csdn.net/sinat_26917383
http://avatar.csdn.net/F/0/E/3_10km.jpg
http://static.blog.csdn.net/ads/home_top2.html
http://csdnimg.cn/pubfooter/js/publib_footer.js
http://c.csdnimg.cn/pubfooter/js/tracking.js
http://blog.csdn.net/ouyang_peng/article/details/75146841
http://blog.csdn.net/taiji1985/article/details/75087742
http://img.knowledge.csdn.net/upload/base/1455589744328_328.jpg
http://avatar.csdn.net/A/4/1/3_u014738140.jpg
http://img.blog.csdn.net/20170714161848587
http://avatar.csdn.net/B/7/7/4_a2011480169.jpg
http://blog.csdn.net/u011304970/article/details/74989260
http://blog.csdn.net/happycxz/article/details/73223916
http://static.blog.csdn.net/static/js/apps/blog_index.js
http://avatar.csdn.net/5/C/4/3_sileixinhua.jpg
http://img.blog.csdn.net/20170711173622170
http://www.mycat.i
http://counter.csdn.net/pv.aspx
http://blog.csdn.net/Marksinoberg
http://blog.csdn.net/column/details/13719.html
http://avatar.csdn.net/C/C/1/3_u010989951.jpg
http://lib.csdn.net/base/react
http://blog.csdn.net/byeweiyang/article/details/75102051
http://static.blog.csdn.net/static/images/write_blog.png
http://static.blog.csdn.net/static/css/common_index.css
http://blog.csdn.net/blogdevteam
http://blog.csdn.net/neacy_zz/article/details/75090239
http://blog.csdn.net/sileixinhua/article/details/75091365
http://avatar.csdn.net/7/F/6/3_panxl6.jpg
http://static.blog.csdn.net/static/images/mod_viewpoint.png
http://static.blog.csdn.net/static/images/cloumn.png
http://avatar.csdn.net/A/A/E/3_happycxz.jpg
http://c.csdnimg.cn/public/common/toolbar/js/toolbar.js
http://avatar.csdn.net/B/D/6/3_neacy_zz.jpg
http://blog.csdn.net/wangyongyao1989
http://blog.csdn.net/chaoyuan899
http://img.blog.csdn.net/20170616193506768
http://blog.csdn.net/u011304970/article/details/74938457
http://avatar.csdn.net/3_guest.jpg
http://static.blog.csdn.net/static/images/export.png
http://blog.csdn.net/Neacy_Zz
http://avatar.csdn.net/F/A/3/3_itermeng.jpg
http://blog.csdn.net/u010989951
http://static.blog.csdn.net/static/images/icon_r.png
http://img.knowledge.csdn.net/upload/base/1453701371636_636.jpg
http://avatar.csdn.net/C/1/5/3_aqi00.jpg
http://avatar.csdn.net/3/2/7/3_chaoyuan899.jpg
http://blog.csdn.net/blogdevteam/article/details/75116901
http://avatar.csdn.net/3/B/2/2_stven_king.jpg
http://c.csdnimg.cn/public/favicon.ico
http://avatar.csdn.net/5/3/5/3_hopeztm.jpg
http://ads.csdn.net/js/async_new.js
http://csdnimg.cn/public/common/libs/bootstrap/css/bootstrap.css
http://blog.csdn.net/column/details/15386.html
http://blog.csdn.net/aqi00/article/details/75096214
http://blog.csdn.net/aqi00
http://avatar.csdn.net/9/4/7/3_change_on.jpg
http://blog.csdn.net/wangyangzhizhou/article/details/75195501
http://img.blog.csdn.net/20170714101354092
http://blog.csdn.net/hopeztm/article/details/75003369
http://static.blog.csdn.net/scripts/cnick.js
http://static.blog.csdn.net/static/css/blog_index.css
http://img.blog.csdn.net/20170705115941151
http://static.blog.csdn.net/static/images/opinion.png
http://img.knowledge.csdn.net/upload/base/1479972981201_201.jpg
http://img.blog.csdn.net/20170505163238984
http://img.blog.csdn.net/20170619113818542
http://lib.csdn.net/base/android
http://blog.csdn.net/epubit17
http://c.csdnimg.cn/pubfooter/js/publib_footer.js
http://blog.csdn.net/u011304970/article/details/75003397
http://blog.csdn.net/wangyongyao1989/article/details/75139633
http://blog.csdn.net/experts/rule.html
http://avatar.csdn.net/B/B/8/2_king1425.jpg
http://img.blog.csdn.net/20170518101810792
http://blog.csdn.net/u014738140
http://avatar.csdn.net/0/8/F/4_marksinoberg.jpg
http://static.blog.csdn.net/static/images/back_top.png
http://avatar.csdn.net/8/C/E/3_blogdevteam.jpg
http://ads.csdn.net/js/tracking.js
http://static.blog.csdn.net/static/images/blog_move_big.png
http://blog.csdn.net/stven_king
http://blog.csdn.net/sinat_26917383/article/details/75050225
http://avatar.csdn.net/D/B/1/3_epubit17.jpg
http://avatar.csdn.net/D/E/3/3_byeweiyang.jpg
http://blog.csdn.net/panxl6/article/details/75096149
http://static.blog.csdn.net/static/images/triangle_right.png
http://write.blog.csdn.net/postedit
http://blog.csdn.net/10km
http://blog.csdn.net/Byeweiyang
http://blog.csdn.net/wemedia/details.html
http://avatar.csdn.net/0/6/A/3_wangyongyao1989.jpg
http://blog.csdn.net/chaoyuan899/article/details/75089447
http://c.csdnimg.cn/public/common/toolbar/js/html.js
http://csdnimg.cn/public/common/libs/jquery/jquery-1.11.1.min.js
http://img.blog.csdn.net/20170705115746496
http://static.blog.csdn.net/static/images/icon_l.png
http://blog.csdn.net/10km/article/details/75095833
http://write.blog.csdn.net
http://blog.csdn.net/u011304970/article/details/74936112
http://static.csdn.net/public/common/toolbar/js/toolbar.js
http://blog.csdn.net/happycxz
http://blog.csdn.net/panxl6
http://static.blog.csdn.net/static/images/blog_move.png
http://avatar.csdn.net/A/5/7/3_taiji1985.jpg
http://blog.csdn.net/hopeztm/article/details/75101158
http://static.csdn.net/public/common/toolbar/css/index.css
http://bbs.csdn.net/topics/391959736
http://blog.csdn.net/hopeztm
http://blog.csdn.net/tianyaleixiaowu
http://blog.csdn.net/turingbooks/article/details/73480804
http://blog.csdn.net/itmyhome1990/article/details/74971622
http://blog.csdn.net/itermeng/article/details/75023320
http://img.blog.csdn.net/20170714100230514
http://blog.csdn.net/change_on/article/details/75134657
http://c.csdnimg.cn/public/common/toolbar/js/notify.js
http://static.blog.csdn.net/static/js/libs/html5shiv.min.js
http://blog.csdn.net/TaiJi1985
http://lib.csdn.net/base/ai
http://blog.csdn.net/King1425
http://blog.csdn.net/column/details/14549.html
输出信息
4、多线程爬取图片
代码实例:
# 多线程爬取图片、下载到本地
import re
import os
import urllib.request
import threading
import queue
import logging
import time url = 'http://www.nipic.com/photo/other/index.html?page=' # 访问的地址
receive = 'D:\\spider' # 存储路径
urlqueue = queue.Queue() def craw(url,pstart,pend):
for page in range(pstart,pend+1):
logging.info('Craw page[%s] information'%page)
html = urllib.request.urlopen(url+str(page)).read().decode('utf-8') # 第一步过滤
par_div ='<div class="search-result overflow-hidden">.*<div class="common-page-box mt10 align-center">'
result_div = re.compile(par_div,re.DOTALL).findall(html)
html = result_div[0] # 第二部过滤
par_img = '<img src="(http://.*?\.jpg)" alt="(.*?)" />'
result_img = re.compile(par_img).findall(html)
if result_img:
urlqueue.put({"result_img":result_img,'page':page}) def download_img():
while True:
result = urlqueue.get()
result_img = result['result_img']
page = result['page']
logging.info('Download image page[%s]',page)
for img in result_img:
img_url = img[0]
img_name = receive + '\\P' + str(page)+ '-' + img[1] +'.jpg'
file_name = same_name(img_name)
try:
logging.info('Download image img_url[%s] file_name[%s]',img_url, file_name)
urllib.request.urlretrieve(img_url, file_name)
except urllib.error.URLError as e:
if hasattr(e,'code'):
print(e.code)
if hasattr(e,'reason'):
print(e.reason) def same_name(imgname,times=0):
if os.path.exists(imgname):
times +=1
file,extension = imgname.split('.')
file = file.strip('(%s)'%(times-1))
imgname = '%s(%s).%s'%(file,times,extension)
return same_name(imgname,times)
else:
return imgname def timer(func):
def inner(*args,**kwargs):
start_time = time.time()
ret = func(*args,**kwargs)
logging.info('Cost time [%s]',time.time()-start_time)
exit
return ret
return inner @timer
def control():
while True:
logging.info('process is runing')
time.sleep(10)
if urlqueue.empty():
logging.info('process finished')
return if __name__ == '__main__':
# 爬取1到10页的内容
logging.basicConfig(level=logging.INFO,
format="%(asctime)s %(message)s", datefmt="%m/%d/%Y %H:%M:%S [%A]")
t1 = threading.Thread(target=craw,args=(url,5,14))
t1.start() d1 = threading.Thread(target=download_img)
d1.start()
d2 = threading.Thread(target=download_img)
d2.start() c1 = threading.Thread(target=control)
c1.start()
日志输出:
// :: [Sunday] Craw page[] information
// :: [Sunday] process is runing
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084552247032_1.jpg] file_name[D:\spider\P5-无限极 维康素 海报 宣传画(1).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084600016030_1.jpg] file_name[D:\spider\P5-无限极 维康素海报 宣传画 展(1).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084607909039_1.jpg] file_name[D:\spider\P5-无限极 怡瑞 海报 宣传画 展(1).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190241511035_1.jpg] file_name[D:\spider\P6-鲜花满地(13).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084615522035_1.jpg] file_name[D:\spider\P5-无限极 怡瑞 海报 宣传画(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190251994039_1.jpg] file_name[D:\spider\P6-鲜花满地(14).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084623166031_1.jpg] file_name[D:\spider\P5-无限极 奕华胶囊 图片(1).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170612/24633738_140947600036_1.jpg] file_name[D:\spider\P5-无限极 芯颜 美白 图片(1).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170610/20592052_102200065000_1.jpg] file_name[D:\spider\P5-珠宝(2).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170610/20592052_103358541000_1.jpg] file_name[D:\spider\P5-珠宝(3).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170610/20592052_104516284000_1.jpg] file_name[D:\spider\P5-项链(1).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170528/25338287_190819870000_1.jpg] file_name[D:\spider\P5-猫咪(1).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181958358033_1.jpg] file_name[D:\spider\P5-简洁装修(4).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182606690036_1.jpg] file_name[D:\spider\P5-简洁装修(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182644192031_1.jpg] file_name[D:\spider\P5-简洁装修(6).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185937549035_1.jpg] file_name[D:\spider\P5-简洁装修(7).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190216239032_1.jpg] file_name[D:\spider\P5-鲜花满地(6).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190255052030_1.jpg] file_name[D:\spider\P6-鲜花满地(15).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190259155031_1.jpg] file_name[D:\spider\P6-鲜花满地(16).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190231714037_1.jpg] file_name[D:\spider\P5-鲜花满地(7).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190225786037_1.jpg] file_name[D:\spider\P5-鲜花满地(8).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190219921039_1.jpg] file_name[D:\spider\P5-鲜花满地(9).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190244771037_1.jpg] file_name[D:\spider\P5-鲜花满地(10).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190241511035_1.jpg] file_name[D:\spider\P5-鲜花满地(11).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_193936911039_1.jpg] file_name[D:\spider\P7-简洁装修(20).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194229245032_1.jpg] file_name[D:\spider\P7-简洁装修(21).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194403438034_1.jpg] file_name[D:\spider\P7-简洁装修(22).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194152585035_1.jpg] file_name[D:\spider\P7-简洁装修(23).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194311412034_1.jpg] file_name[D:\spider\P7-简洁装修(24).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194650202032_1.jpg] file_name[D:\spider\P7-简洁装修(25).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194521750037_1.jpg] file_name[D:\spider\P7-简洁装修(26).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194450129031_1.jpg] file_name[D:\spider\P7-简洁装修(27).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194716254032_1.jpg] file_name[D:\spider\P7-简洁装修(28).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194600141031_1.jpg] file_name[D:\spider\P7-简洁装修(29).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194924736037_1.jpg] file_name[D:\spider\P7-简洁装修(30).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194747594035_1.jpg] file_name[D:\spider\P7-简洁装修(31).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194844878038_1.jpg] file_name[D:\spider\P7-简洁装修(32).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195035513035_1.jpg] file_name[D:\spider\P7-简洁装修(33).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195018915039_1.jpg] file_name[D:\spider\P7-简洁装修(34).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194951427034_1.jpg] file_name[D:\spider\P7-简洁装修(35).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195159207032_1.jpg] file_name[D:\spider\P7-简洁装修(36).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195130675036_1.jpg] file_name[D:\spider\P7-简洁装修(37).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195106635036_1.jpg] file_name[D:\spider\P7-简洁装修(38).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195222139031_1.jpg] file_name[D:\spider\P7-简洁装修(39).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170430/22060368_141358615036_1.jpg] file_name[D:\spider\P8-红砖贴图(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190257361033_1.jpg] file_name[D:\spider\P6-鲜花满地(17).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_152900552000_1.jpg] file_name[D:\spider\P8-钻戒(11).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190304225032_1.jpg] file_name[D:\spider\P6-鲜花满地(18).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_152900568001_1.jpg] file_name[D:\spider\P8-钻石戒指(6).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190302181031_1.jpg] file_name[D:\spider\P6-鲜花满地(19).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_152909663000_1.jpg] file_name[D:\spider\P8-黄金戒指(2).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190309997039_1.jpg] file_name[D:\spider\P6-鲜花满地(20).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_152909632000_1.jpg] file_name[D:\spider\P8-钻戒(12).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190308328033_1.jpg] file_name[D:\spider\P6-鲜花满地(21).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153051718000_1.jpg] file_name[D:\spider\P8-钻戒(13).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190306627036_1.jpg] file_name[D:\spider\P6-鲜花满地(22).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153113106000_1.jpg] file_name[D:\spider\P8-钻戒(14).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190312134031_1.jpg] file_name[D:\spider\P6-鲜花满地(23).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153113636000_1.jpg] file_name[D:\spider\P8-钻戒(15).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190315192031_1.jpg] file_name[D:\spider\P6-鲜花满地(24).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153107287000_1.jpg] file_name[D:\spider\P8-钻戒(16).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153056788000_1.jpg] file_name[D:\spider\P8-钻戒(17).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190313632036_1.jpg] file_name[D:\spider\P6-鲜花满地(25).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153106913000_1.jpg] file_name[D:\spider\P8-钻戒(18).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/13726214_100924368620_1.jpg] file_name[D:\spider\P6-公园雪景(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153058333000_1.jpg] file_name[D:\spider\P8-钻戒(19).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170501/25211907_194017572035_1.jpg] file_name[D:\spider\P6-泊船(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153134712000_1.jpg] file_name[D:\spider\P8-钻石戒指(7).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194010779037_1.jpg] file_name[D:\spider\P6-简洁装修(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_193857038030_1.jpg] file_name[D:\spider\P6-简洁装修(6).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194042447034_1.jpg] file_name[D:\spider\P6-简洁装修(7).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_193936911039_1.jpg] file_name[D:\spider\P6-简洁装修(8).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194229245032_1.jpg] file_name[D:\spider\P6-简洁装修(9).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153216068000_1.jpg] file_name[D:\spider\P9-黄金戒指(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153218408000_1.jpg] file_name[D:\spider\P9-钻戒(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153130204000_1.jpg] file_name[D:\spider\P8-钻石戒指(8).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170418/12895166_090714526000_1.jpg] file_name[D:\spider\P9-样板房装修(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153126772000_1.jpg] file_name[D:\spider\P8-钻石戒指(9).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170407/25051300_110932722000_1.jpg] file_name[D:\spider\P9-膨胀钩 膨胀螺丝(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153116148000_1.jpg] file_name[D:\spider\P8-钻戒(20).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170407/25051300_110932629000_1.jpg] file_name[D:\spider\P9-膨胀钩(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170407/25051300_110932722001_1.jpg] file_name[D:\spider\P9-不锈钢膨胀钩子(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170403/21642129_140137566000_1.jpg] file_name[D:\spider\P9-乱石海边船一排(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153127458000_1.jpg] file_name[D:\spider\P8-钻石戒指(10).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170403/4562496_093244967000_1.jpg] file_name[D:\spider\P9-花生(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170403/4562496_093249366000_1.jpg] file_name[D:\spider\P9-花生(3).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153127957000_1.jpg] file_name[D:\spider\P8-钻戒(21).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170403/24984883_024600007030_1.jpg] file_name[D:\spider\P9-上海(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170402/24995682_202041017000_1.jpg] file_name[D:\spider\P9-天涯哨兵(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170401/22913924_150713349000_1.jpg] file_name[D:\spider\P9-兰博基尼(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153147613000_1.jpg] file_name[D:\spider\P8-黄金戒指(3).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170401/22913924_150345213001_1.jpg] file_name[D:\spider\P9-路虎(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170328/4104854_102406787000_1.jpg] file_name[D:\spider\P9-陶瓷青蛙(3).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170328/4104854_102046420000_1.jpg] file_name[D:\spider\P9-陶瓷青蛙(4).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153139111000_1.jpg] file_name[D:\spider\P8-钻石戒指(11).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170328/4104854_102046139000_1.jpg] file_name[D:\spider\P9-陶瓷青蛙(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170328/24034531_210139050000_1.jpg] file_name[D:\spider\P9-梦幻背景(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170327/24586865_200258363000_1.jpg] file_name[D:\spider\P9-柿子(1).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181601105000_1.jpg] file_name[D:\spider\P10-茶 茶文化 茶壶 茶杯(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181227463000_1.jpg] file_name[D:\spider\P9-炒蜂蛹图片(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181701649000_1.jpg] file_name[D:\spider\P10-盘王文化 瑶族文化 瑶族工艺品(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181601105000_1.jpg] file_name[D:\spider\P9-茶 茶文化 茶壶 茶杯(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181726672000_1.jpg] file_name[D:\spider\P10-酒店前台 前台服务 星级酒店(2).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180908039030_1.jpg] file_name[D:\spider\P11-简洁装修(40).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170310/7112406_204902793037_1.jpg] file_name[D:\spider\P10-荷花(8).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180921986039_1.jpg] file_name[D:\spider\P11-简洁装修(41).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170310/7112406_204630334033_1.jpg] file_name[D:\spider\P10-荷花(9).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180952328033_1.jpg] file_name[D:\spider\P11-简洁装修(42).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170310/7112406_204400106031_1.jpg] file_name[D:\spider\P10-荷花(10).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180938272032_1.jpg] file_name[D:\spider\P11-简洁装修(43).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170310/7112406_204120752037_1.jpg] file_name[D:\spider\P10-荷花(11).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181353489034_1.jpg] file_name[D:\spider\P10-简洁装修(26).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181019425034_1.jpg] file_name[D:\spider\P11-简洁装修(44).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181424860038_1.jpg] file_name[D:\spider\P10-简洁装修(27).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181007382033_1.jpg] file_name[D:\spider\P11-简洁装修(45).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180542603036_1.jpg] file_name[D:\spider\P10-简洁装修(28).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181112200032_1.jpg] file_name[D:\spider\P11-简洁装修(46).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181030220032_1.jpg] file_name[D:\spider\P11-简洁装修(47).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180520279032_1.jpg] file_name[D:\spider\P10-简洁装修(29).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181040111031_1.jpg] file_name[D:\spider\P11-简洁装修(48).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180503337033_1.jpg] file_name[D:\spider\P10-简洁装修(30).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181157799037_1.jpg] file_name[D:\spider\P11-简洁装修(49).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180431076030_1.jpg] file_name[D:\spider\P10-简洁装修(31).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180448533035_1.jpg] file_name[D:\spider\P10-简洁装修(32).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181141091030_1.jpg] file_name[D:\spider\P11-简洁装修(50).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180624395033_1.jpg] file_name[D:\spider\P10-简洁装修(33).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181055133031_1.jpg] file_name[D:\spider\P11-简洁装修(51).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180714533035_1.jpg] file_name[D:\spider\P10-简洁装修(34).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181048160031_1.jpg] file_name[D:\spider\P11-简洁装修(52).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180608733037_1.jpg] file_name[D:\spider\P10-简洁装修(35).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181242306033_1.jpg] file_name[D:\spider\P11-简洁装修(53).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180656765037_1.jpg] file_name[D:\spider\P10-简洁装修(36).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181207315033_1.jpg] file_name[D:\spider\P11-简洁装修(54).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180640338033_1.jpg] file_name[D:\spider\P10-简洁装修(37).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181259996039_1.jpg] file_name[D:\spider\P11-简洁装修(55).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180938272032_1.jpg] file_name[D:\spider\P10-简洁装修(38).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181330401034_1.jpg] file_name[D:\spider\P12-简洁装修(40).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181222026030_1.jpg] file_name[D:\spider\P11-简洁装修(56).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181316953039_1.jpg] file_name[D:\spider\P12-简洁装修(41).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181538960039_1.jpg] file_name[D:\spider\P11-简洁装修(57).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181514078030_1.jpg] file_name[D:\spider\P11-简洁装修(58).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181704293032_1.jpg] file_name[D:\spider\P12-简洁装修(42).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181442005030_1.jpg] file_name[D:\spider\P11-简洁装修(59).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181638958039_1.jpg] file_name[D:\spider\P12-简洁装修(43).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182808573035_1.jpg] file_name[D:\spider\P13-简洁装修(40).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181559240032_1.jpg] file_name[D:\spider\P12-简洁装修(44).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182841411034_1.jpg] file_name[D:\spider\P13-简洁装修(41).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181609458034_1.jpg] file_name[D:\spider\P12-简洁装修(45).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182929116031_1.jpg] file_name[D:\spider\P13-简洁装修(42).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181646618036_1.jpg] file_name[D:\spider\P12-简洁装修(46).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183142496034_1.jpg] file_name[D:\spider\P13-简洁装修(43).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181621455034_1.jpg] file_name[D:\spider\P12-简洁装修(47).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183044105031_1.jpg] file_name[D:\spider\P13-简洁装修(44).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181850965039_1.jpg] file_name[D:\spider\P12-简洁装修(48).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183354082030_1.jpg] file_name[D:\spider\P13-简洁装修(45).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181927095030_1.jpg] file_name[D:\spider\P12-简洁装修(49).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181806677036_1.jpg] file_name[D:\spider\P12-简洁装修(50).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183235271032_1.jpg] file_name[D:\spider\P13-简洁装修(46).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181717989039_1.jpg] file_name[D:\spider\P12-简洁装修(51).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183009348033_1.jpg] file_name[D:\spider\P13-简洁装修(47).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182129212032_1.jpg] file_name[D:\spider\P12-简洁装修(52).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183803074030_1.jpg] file_name[D:\spider\P13-简洁装修(48).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182058745037_1.jpg] file_name[D:\spider\P12-简洁装修(53).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183715525035_1.jpg] file_name[D:\spider\P13-简洁装修(49).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182334418034_1.jpg] file_name[D:\spider\P12-简洁装修(54).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183447544035_1.jpg] file_name[D:\spider\P13-简洁装修(50).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182256494034_1.jpg] file_name[D:\spider\P12-简洁装修(55).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183634310033_1.jpg] file_name[D:\spider\P13-简洁装修(51).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182429470034_1.jpg] file_name[D:\spider\P12-简洁装修(56).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183544281032_1.jpg] file_name[D:\spider\P13-简洁装修(52).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182225169031_1.jpg] file_name[D:\spider\P12-简洁装修(57).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184035877038_1.jpg] file_name[D:\spider\P13-简洁装修(53).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183930388033_1.jpg] file_name[D:\spider\P13-简洁装修(54).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182519625036_1.jpg] file_name[D:\spider\P12-简洁装修(58).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184012711037_1.jpg] file_name[D:\spider\P13-简洁装修(55).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182728278032_1.jpg] file_name[D:\spider\P12-简洁装修(59).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184117279032_1.jpg] file_name[D:\spider\P13-简洁装修(56).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184249912039_1.jpg] file_name[D:\spider\P14-简洁装修(40).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183847815038_1.jpg] file_name[D:\spider\P13-简洁装修(57).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184339333033_1.jpg] file_name[D:\spider\P14-简洁装修(41).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184339333033_1.jpg] file_name[D:\spider\P13-简洁装修(58).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184504587035_1.jpg] file_name[D:\spider\P14-简洁装修(42).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184417912039_1.jpg] file_name[D:\spider\P13-简洁装修(59).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184417912039_1.jpg] file_name[D:\spider\P14-简洁装修(43).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184551715037_1.jpg] file_name[D:\spider\P14-简洁装修(44).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184640636036_1.jpg] file_name[D:\spider\P14-简洁装修(45).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184929320033_1.jpg] file_name[D:\spider\P14-简洁装修(46).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184817403034_1.jpg] file_name[D:\spider\P14-简洁装修(47).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184724457034_1.jpg] file_name[D:\spider\P14-简洁装修(48).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184859586035_1.jpg] file_name[D:\spider\P14-简洁装修(49).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184754721037_1.jpg] file_name[D:\spider\P14-简洁装修(50).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184704926039_1.jpg] file_name[D:\spider\P14-简洁装修(51).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185121453034_1.jpg] file_name[D:\spider\P14-简洁装修(52).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185043404034_1.jpg] file_name[D:\spider\P14-简洁装修(53).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184948086030_1.jpg] file_name[D:\spider\P14-简洁装修(54).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185013561035_1.jpg] file_name[D:\spider\P14-简洁装修(55).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185231637036_1.jpg] file_name[D:\spider\P14-简洁装修(56).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185150765037_1.jpg] file_name[D:\spider\P14-简洁装修(57).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185327828038_1.jpg] file_name[D:\spider\P14-简洁装修(58).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185302931039_1.jpg] file_name[D:\spider\P14-简洁装修(59).jpg]
// :: [Sunday] process finished
// :: [Sunday] Cost time [10.000751733779907]
打印输出
5、多协程爬取图片:
代码实例:
# 多线程爬取图片、下载到本地
import re
import os
import urllib.request
import threading
import queue
import logging
import time url = 'http://www.nipic.com/photo/other/index.html?page=' # 访问的地址
receive = 'D:\\spider' # 存储路径
urlqueue = queue.Queue() def craw(url,pstart,pend):
for page in range(pstart,pend+):
logging.info('Craw page[%s] information'%page)
html = urllib.request.urlopen(url+str(page)).read().decode('utf-8') # 第一步过滤
par_div ='<div class="search-result overflow-hidden">.*<div class="common-page-box mt10 align-center">'
result_div = re.compile(par_div,re.DOTALL).findall(html)
html = result_div[] # 第二部过滤
par_img = '<img src="(http://.*?\.jpg)" alt="(.*?)" />'
result_img = re.compile(par_img).findall(html)
if result_img:
urlqueue.put({"result_img":result_img,'page':page}) def download_img():
while True:
result = urlqueue.get()
result_img = result['result_img']
page = result['page']
logging.info('Download image page[%s]',page)
for img in result_img:
img_url = img[]
img_name = receive + '\\P' + str(page)+ '-' + img[] +'.jpg'
file_name = same_name(img_name)
try:
logging.info('Download image img_url[%s] file_name[%s]',img_url, file_name)
urllib.request.urlretrieve(img_url, file_name)
except urllib.error.URLError as e:
if hasattr(e,'code'):
print(e.code)
if hasattr(e,'reason'):
print(e.reason) def same_name(imgname,times=):
if os.path.exists(imgname):
times +=
file,extension = imgname.split('.')
file = file.strip('(%s)'%(times-))
imgname = '%s(%s).%s'%(file,times,extension)
return same_name(imgname,times)
else:
return imgname def timer(func):
def inner(*args,**kwargs):
start_time = time.time()
ret = func(*args,**kwargs)
logging.info('Cost time [%s]',time.time()-start_time)
exit()
return ret
return inner @timer
def control():
while True:
logging.info('process is runing')
time.sleep()
if urlqueue.empty():
logging.info('process finished')
return if __name__ == '__main__':
# 爬取1到10页的内容
logging.basicConfig(level=logging.INFO,
format="%(asctime)s %(message)s", datefmt="%m/%d/%Y %H:%M:%S [%A]")
import gevent, time
from gevent import monkey
monkey.patch_all() # monkey.patch_all()执行后可以识别urllib里面的I/0操作
gevent.joinall([
gevent.spawn(craw,url,,),
gevent.spawn(download_img,),
gevent.spawn(download_img,),
gevent.spawn(download_img,),
gevent.spawn(control, )
])
多协程
日志输出:
// :: [Sunday] Craw page[] information
// :: [Sunday] process is runing
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084552247032_1.jpg] file_name[D:\spider\P5-无限极 维康素 海报 宣传画.jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084600016030_1.jpg] file_name[D:\spider\P5-无限极 维康素海报 宣传画 展.jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084607909039_1.jpg] file_name[D:\spider\P5-无限极 怡瑞 海报 宣传画 展.jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190241511035_1.jpg] file_name[D:\spider\P6-鲜花满地.jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084615522035_1.jpg] file_name[D:\spider\P5-无限极 怡瑞 海报 宣传画.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190251994039_1.jpg] file_name[D:\spider\P6-鲜花满地(1).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_193936911039_1.jpg] file_name[D:\spider\P7-简洁装修.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194229245032_1.jpg] file_name[D:\spider\P7-简洁装修(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194403438034_1.jpg] file_name[D:\spider\P7-简洁装修(2).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170613/24633738_084623166031_1.jpg] file_name[D:\spider\P5-无限极 奕华胶囊 图片.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194152585035_1.jpg] file_name[D:\spider\P7-简洁装修(3).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190255052030_1.jpg] file_name[D:\spider\P6-鲜花满地(2).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170612/24633738_140947600036_1.jpg] file_name[D:\spider\P5-无限极 芯颜 美白 图片.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194311412034_1.jpg] file_name[D:\spider\P7-简洁装修(4).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170610/20592052_102200065000_1.jpg] file_name[D:\spider\P5-珠宝.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194650202032_1.jpg] file_name[D:\spider\P7-简洁装修(5).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170610/20592052_103358541000_1.jpg] file_name[D:\spider\P5-珠宝(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194521750037_1.jpg] file_name[D:\spider\P7-简洁装修(6).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170610/20592052_104516284000_1.jpg] file_name[D:\spider\P5-项链.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194450129031_1.jpg] file_name[D:\spider\P7-简洁装修(7).jpg]
// :: [Sunday] Download image img_url[http://img83.nipic.com/file/20170528/25338287_190819870000_1.jpg] file_name[D:\spider\P5-猫咪.jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194716254032_1.jpg] file_name[D:\spider\P7-简洁装修(8).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181958358033_1.jpg] file_name[D:\spider\P5-简洁装修.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194600141031_1.jpg] file_name[D:\spider\P7-简洁装修(9).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182606690036_1.jpg] file_name[D:\spider\P5-简洁装修(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194924736037_1.jpg] file_name[D:\spider\P7-简洁装修(10).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182644192031_1.jpg] file_name[D:\spider\P5-简洁装修(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194747594035_1.jpg] file_name[D:\spider\P7-简洁装修(11).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190259155031_1.jpg] file_name[D:\spider\P6-鲜花满地(3).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185937549035_1.jpg] file_name[D:\spider\P5-简洁装修(3).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194844878038_1.jpg] file_name[D:\spider\P7-简洁装修(12).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190257361033_1.jpg] file_name[D:\spider\P6-鲜花满地(4).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190216239032_1.jpg] file_name[D:\spider\P5-鲜花满地.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195035513035_1.jpg] file_name[D:\spider\P7-简洁装修(13).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190304225032_1.jpg] file_name[D:\spider\P6-鲜花满地(5).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190302181031_1.jpg] file_name[D:\spider\P6-鲜花满地(6).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195018915039_1.jpg] file_name[D:\spider\P7-简洁装修(14).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190231714037_1.jpg] file_name[D:\spider\P5-鲜花满地(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194951427034_1.jpg] file_name[D:\spider\P7-简洁装修(15).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190309997039_1.jpg] file_name[D:\spider\P6-鲜花满地(7).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190225786037_1.jpg] file_name[D:\spider\P5-鲜花满地(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195159207032_1.jpg] file_name[D:\spider\P7-简洁装修(16).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190308328033_1.jpg] file_name[D:\spider\P6-鲜花满地(8).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190219921039_1.jpg] file_name[D:\spider\P5-鲜花满地(3).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195130675036_1.jpg] file_name[D:\spider\P7-简洁装修(17).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190306627036_1.jpg] file_name[D:\spider\P6-鲜花满地(9).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190244771037_1.jpg] file_name[D:\spider\P5-鲜花满地(4).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195106635036_1.jpg] file_name[D:\spider\P7-简洁装修(18).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190312134031_1.jpg] file_name[D:\spider\P6-鲜花满地(10).jpg]
// :: [Sunday] Craw page[] information
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_195222139031_1.jpg] file_name[D:\spider\P7-简洁装修(19).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190241511035_1.jpg] file_name[D:\spider\P5-鲜花满地(5).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190315192031_1.jpg] file_name[D:\spider\P6-鲜花满地(11).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170430/22060368_141358615036_1.jpg] file_name[D:\spider\P8-红砖贴图.jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153216068000_1.jpg] file_name[D:\spider\P9-黄金戒指.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/25072279_190313632036_1.jpg] file_name[D:\spider\P6-鲜花满地(12).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_152900552000_1.jpg] file_name[D:\spider\P8-钻戒.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153218408000_1.jpg] file_name[D:\spider\P9-钻戒.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170506/13726214_100924368620_1.jpg] file_name[D:\spider\P6-公园雪景.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_152900568001_1.jpg] file_name[D:\spider\P8-钻石戒指.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170418/12895166_090714526000_1.jpg] file_name[D:\spider\P9-样板房装修.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170501/25211907_194017572035_1.jpg] file_name[D:\spider\P6-泊船.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_152909663000_1.jpg] file_name[D:\spider\P8-黄金戒指.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170407/25051300_110932722000_1.jpg] file_name[D:\spider\P9-膨胀钩 膨胀螺丝.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194010779037_1.jpg] file_name[D:\spider\P6-简洁装修.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_152909632000_1.jpg] file_name[D:\spider\P8-钻戒(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170407/25051300_110932629000_1.jpg] file_name[D:\spider\P9-膨胀钩.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_193857038030_1.jpg] file_name[D:\spider\P6-简洁装修(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153051718000_1.jpg] file_name[D:\spider\P8-钻戒(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170407/25051300_110932722001_1.jpg] file_name[D:\spider\P9-不锈钢膨胀钩子.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194042447034_1.jpg] file_name[D:\spider\P6-简洁装修(2).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153113106000_1.jpg] file_name[D:\spider\P8-钻戒(3).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170403/21642129_140137566000_1.jpg] file_name[D:\spider\P9-乱石海边船一排.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_193936911039_1.jpg] file_name[D:\spider\P6-简洁装修(3).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153113636000_1.jpg] file_name[D:\spider\P8-钻戒(4).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170403/4562496_093244967000_1.jpg] file_name[D:\spider\P9-花生.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153107287000_1.jpg] file_name[D:\spider\P8-钻戒(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_194229245032_1.jpg] file_name[D:\spider\P6-简洁装修(4).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170403/4562496_093249366000_1.jpg] file_name[D:\spider\P9-花生(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153056788000_1.jpg] file_name[D:\spider\P8-钻戒(6).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181601105000_1.jpg] file_name[D:\spider\P10-茶 茶文化 茶壶 茶杯.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170403/24984883_024600007030_1.jpg] file_name[D:\spider\P9-上海.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153106913000_1.jpg] file_name[D:\spider\P8-钻戒(7).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181701649000_1.jpg] file_name[D:\spider\P10-盘王文化 瑶族文化 瑶族工艺品.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170402/24995682_202041017000_1.jpg] file_name[D:\spider\P9-天涯哨兵.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153058333000_1.jpg] file_name[D:\spider\P8-钻戒(8).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170401/22913924_150713349000_1.jpg] file_name[D:\spider\P9-兰博基尼.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181726672000_1.jpg] file_name[D:\spider\P10-酒店前台 前台服务 星级酒店.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153134712000_1.jpg] file_name[D:\spider\P8-钻石戒指(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170401/22913924_150345213001_1.jpg] file_name[D:\spider\P9-路虎.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170310/7112406_204902793037_1.jpg] file_name[D:\spider\P10-荷花.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153130204000_1.jpg] file_name[D:\spider\P8-钻石戒指(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170328/4104854_102406787000_1.jpg] file_name[D:\spider\P9-陶瓷青蛙.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170310/7112406_204630334033_1.jpg] file_name[D:\spider\P10-荷花(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153126772000_1.jpg] file_name[D:\spider\P8-钻石戒指(3).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170328/4104854_102046420000_1.jpg] file_name[D:\spider\P9-陶瓷青蛙(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170310/7112406_204400106031_1.jpg] file_name[D:\spider\P10-荷花(2).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153116148000_1.jpg] file_name[D:\spider\P8-钻戒(9).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170328/4104854_102046139000_1.jpg] file_name[D:\spider\P9-陶瓷青蛙(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170310/7112406_204120752037_1.jpg] file_name[D:\spider\P10-荷花(3).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153127458000_1.jpg] file_name[D:\spider\P8-钻石戒指(4).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170328/24034531_210139050000_1.jpg] file_name[D:\spider\P9-梦幻背景.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181353489034_1.jpg] file_name[D:\spider\P10-简洁装修.jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153127957000_1.jpg] file_name[D:\spider\P8-钻戒(10).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170327/24586865_200258363000_1.jpg] file_name[D:\spider\P9-柿子.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181424860038_1.jpg] file_name[D:\spider\P10-简洁装修(1).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153147613000_1.jpg] file_name[D:\spider\P8-黄金戒指(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181227463000_1.jpg] file_name[D:\spider\P9-炒蜂蛹图片.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180542603036_1.jpg] file_name[D:\spider\P10-简洁装修(2).jpg]
// :: [Sunday] Download image img_url[http://img82.nipic.com/file/20170408/13452884_153139111000_1.jpg] file_name[D:\spider\P8-钻石戒指(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170302/6025866_181601105000_1.jpg] file_name[D:\spider\P9-茶 茶文化 茶壶 茶杯.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180520279032_1.jpg] file_name[D:\spider\P10-简洁装修(3).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180908039030_1.jpg] file_name[D:\spider\P11-简洁装修.jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181330401034_1.jpg] file_name[D:\spider\P12-简洁装修.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180503337033_1.jpg] file_name[D:\spider\P10-简洁装修(4).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180921986039_1.jpg] file_name[D:\spider\P11-简洁装修(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181316953039_1.jpg] file_name[D:\spider\P12-简洁装修(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180952328033_1.jpg] file_name[D:\spider\P11-简洁装修(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180431076030_1.jpg] file_name[D:\spider\P10-简洁装修(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181704293032_1.jpg] file_name[D:\spider\P12-简洁装修(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180938272032_1.jpg] file_name[D:\spider\P11-简洁装修(3).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180448533035_1.jpg] file_name[D:\spider\P10-简洁装修(6).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181638958039_1.jpg] file_name[D:\spider\P12-简洁装修(3).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180624395033_1.jpg] file_name[D:\spider\P10-简洁装修(7).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181019425034_1.jpg] file_name[D:\spider\P11-简洁装修(4).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181559240032_1.jpg] file_name[D:\spider\P12-简洁装修(4).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180714533035_1.jpg] file_name[D:\spider\P10-简洁装修(8).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181007382033_1.jpg] file_name[D:\spider\P11-简洁装修(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181609458034_1.jpg] file_name[D:\spider\P12-简洁装修(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180608733037_1.jpg] file_name[D:\spider\P10-简洁装修(9).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181112200032_1.jpg] file_name[D:\spider\P11-简洁装修(6).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181646618036_1.jpg] file_name[D:\spider\P12-简洁装修(6).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180656765037_1.jpg] file_name[D:\spider\P10-简洁装修(10).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181030220032_1.jpg] file_name[D:\spider\P11-简洁装修(7).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181621455034_1.jpg] file_name[D:\spider\P12-简洁装修(7).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180640338033_1.jpg] file_name[D:\spider\P10-简洁装修(11).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181040111031_1.jpg] file_name[D:\spider\P11-简洁装修(8).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181850965039_1.jpg] file_name[D:\spider\P12-简洁装修(8).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_180938272032_1.jpg] file_name[D:\spider\P10-简洁装修(12).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181157799037_1.jpg] file_name[D:\spider\P11-简洁装修(9).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182808573035_1.jpg] file_name[D:\spider\P13-简洁装修.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181927095030_1.jpg] file_name[D:\spider\P12-简洁装修(9).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181141091030_1.jpg] file_name[D:\spider\P11-简洁装修(10).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182841411034_1.jpg] file_name[D:\spider\P13-简洁装修(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181806677036_1.jpg] file_name[D:\spider\P12-简洁装修(10).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181055133031_1.jpg] file_name[D:\spider\P11-简洁装修(11).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181717989039_1.jpg] file_name[D:\spider\P12-简洁装修(11).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182929116031_1.jpg] file_name[D:\spider\P13-简洁装修(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181048160031_1.jpg] file_name[D:\spider\P11-简洁装修(12).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183142496034_1.jpg] file_name[D:\spider\P13-简洁装修(3).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182129212032_1.jpg] file_name[D:\spider\P12-简洁装修(12).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181242306033_1.jpg] file_name[D:\spider\P11-简洁装修(13).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182058745037_1.jpg] file_name[D:\spider\P12-简洁装修(13).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183044105031_1.jpg] file_name[D:\spider\P13-简洁装修(4).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181207315033_1.jpg] file_name[D:\spider\P11-简洁装修(14).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182334418034_1.jpg] file_name[D:\spider\P12-简洁装修(14).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183354082030_1.jpg] file_name[D:\spider\P13-简洁装修(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181259996039_1.jpg] file_name[D:\spider\P11-简洁装修(15).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183235271032_1.jpg] file_name[D:\spider\P13-简洁装修(6).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182256494034_1.jpg] file_name[D:\spider\P12-简洁装修(15).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181222026030_1.jpg] file_name[D:\spider\P11-简洁装修(16).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182429470034_1.jpg] file_name[D:\spider\P12-简洁装修(16).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183009348033_1.jpg] file_name[D:\spider\P13-简洁装修(7).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181538960039_1.jpg] file_name[D:\spider\P11-简洁装修(17).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183803074030_1.jpg] file_name[D:\spider\P13-简洁装修(8).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182225169031_1.jpg] file_name[D:\spider\P12-简洁装修(17).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181514078030_1.jpg] file_name[D:\spider\P11-简洁装修(18).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183715525035_1.jpg] file_name[D:\spider\P13-简洁装修(9).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182519625036_1.jpg] file_name[D:\spider\P12-简洁装修(18).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_181442005030_1.jpg] file_name[D:\spider\P11-简洁装修(19).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_182728278032_1.jpg] file_name[D:\spider\P12-简洁装修(19).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183447544035_1.jpg] file_name[D:\spider\P13-简洁装修(10).jpg]
// :: [Sunday] Download image page[]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184249912039_1.jpg] file_name[D:\spider\P14-简洁装修.jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183634310033_1.jpg] file_name[D:\spider\P13-简洁装修(11).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184339333033_1.jpg] file_name[D:\spider\P14-简洁装修(1).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183544281032_1.jpg] file_name[D:\spider\P13-简洁装修(12).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184504587035_1.jpg] file_name[D:\spider\P14-简洁装修(2).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184035877038_1.jpg] file_name[D:\spider\P13-简洁装修(13).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184417912039_1.jpg] file_name[D:\spider\P14-简洁装修(3).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183930388033_1.jpg] file_name[D:\spider\P13-简洁装修(14).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184551715037_1.jpg] file_name[D:\spider\P14-简洁装修(4).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184012711037_1.jpg] file_name[D:\spider\P13-简洁装修(15).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184640636036_1.jpg] file_name[D:\spider\P14-简洁装修(5).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184117279032_1.jpg] file_name[D:\spider\P13-简洁装修(16).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184929320033_1.jpg] file_name[D:\spider\P14-简洁装修(6).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_183847815038_1.jpg] file_name[D:\spider\P13-简洁装修(17).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184817403034_1.jpg] file_name[D:\spider\P14-简洁装修(7).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184724457034_1.jpg] file_name[D:\spider\P14-简洁装修(8).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184339333033_1.jpg] file_name[D:\spider\P13-简洁装修(18).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184417912039_1.jpg] file_name[D:\spider\P13-简洁装修(19).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184859586035_1.jpg] file_name[D:\spider\P14-简洁装修(9).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184754721037_1.jpg] file_name[D:\spider\P14-简洁装修(10).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184704926039_1.jpg] file_name[D:\spider\P14-简洁装修(11).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185121453034_1.jpg] file_name[D:\spider\P14-简洁装修(12).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185043404034_1.jpg] file_name[D:\spider\P14-简洁装修(13).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_184948086030_1.jpg] file_name[D:\spider\P14-简洁装修(14).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185013561035_1.jpg] file_name[D:\spider\P14-简洁装修(15).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185231637036_1.jpg] file_name[D:\spider\P14-简洁装修(16).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185150765037_1.jpg] file_name[D:\spider\P14-简洁装修(17).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185327828038_1.jpg] file_name[D:\spider\P14-简洁装修(18).jpg]
// :: [Sunday] Download image img_url[http://img81.nipic.com/file/20170216/7112406_185302931039_1.jpg] file_name[D:\spider\P14-简洁装修(19).jpg]
// :: [Sunday] process finished
// :: [Sunday] Cost time [10.000833749771118] Process finished with exit code
打印输出
Python开发【模块】:Urllib(二)的更多相关文章
- python标准模块(二)
本文会涉及到的模块: json.pickle urllib.Requests xml.etree configparser shutil.zipfile.tarfile 1. json & p ...
- Python核心模块——urllib模块
现在Python基本入门了,现在开始要进军如何写爬虫了! 先把最基本的urllib模块弄懂吧. urllib模块中的方法 1.urllib.urlopen(url[,data[,proxies]]) ...
- [转]Python核心模块——urllib模块
现在Python基本入门了,现在开始要进军如何写爬虫了! 先把最基本的urllib模块弄懂吧. urllib模块中的方法 1.urllib.urlopen(url[,data[,proxies]]) ...
- Python开发【十二章】:ORM sqlalchemy
一.对象映射关系(ORM) orm英文全称object relational mapping,就是对象映射关系程序,简单来说我们类似python这种面向对象的程序来说一切皆对象,但是我们使用的数据库却 ...
- python开发模块基础:异常处理&hashlib&logging&configparser
一,异常处理 # 异常处理代码 try: f = open('file', 'w') except ValueError: print('请输入一个数字') except Exception as e ...
- python开发模块基础:os&sys
一,os模块 os模块是与操作系统交互的一个接口 #!/usr/bin/env python #_*_coding:utf-8_*_ ''' os.walk() 显示目录下所有文件和子目录以元祖的形式 ...
- python开发模块基础:序列化模块json,pickle,shelve
一,为什么要序列化 # 将原本的字典.列表等内容转换成一个字符串的过程就叫做序列化'''比如,我们在python代码中计算的一个数据需要给另外一段程序使用,那我们怎么给?现在我们能想到的方法就是存在文 ...
- python开发模块基础:time&random
一,time模块 和时间有关系的我们就要用到时间模块.在使用模块之前,应该首先导入这个模块 常用方法1.(线程)推迟指定的时间运行.单位为秒. time.sleep(1) #括号内为整数 2.获取当前 ...
- python开发模块基础:collections模块¶miko模块
一,collections模块 在内置数据类型(dict.list.set.tuple)的基础上,collections模块还提供了几个额外的数据类型:Counter.deque.defaultdic ...
- PYTHON开发--面向对象基础二
一.成员修饰符 共有成员 私有成员, __字段名 - 无法直接访问,只能间接访问 1. 私有成员 1.1 普通方法种的私有成员 class Foo: def __init__(self, n ...
随机推荐
- Gray Code - 格雷码
基本概念 格雷码是一种准权码,具有一种反射特性和循环特性的单步自补码,它的循环.单步特性消除了随机取数时出现重大误差的可能,它的反射.自补特性使得求反非常方便.格雷码属于可靠性编码,是一种错误最小化的 ...
- hadoop本地测试命令
http://www.cnblogs.com/shishanyuan/p/4190403.html if have assign the /etc/profile: hadoop jar /usr/l ...
- apache Storm之一-入门学习
准备工作 这个教程使用storm-starter项目里面的例子.我推荐你们下载这个项目的代码并且跟着教程一起做.先读一下:配置storm开发环境和新建一个strom项目这两篇文章把你的机器设置好. 一 ...
- Linux下的CPU性能瓶颈分析案例
问题描述: 在对notify执行性能测试时发现cpu负载突然飙高,cpu利用率高达95%.这时候就要排查是哪些线程消耗了cpu,并从代码层找到占用cpu的“罪魁祸首”. 步骤: 1. 先用ps+gre ...
- jQuery.ajax实现根据不同的Content-Type做出不同的响应
使用H5+ASP.NET General Handler开发项目,使用ajax进行前后端的通讯.有一个场景需求是根据服务器返回的不同数据类型,前端进行不同的响应,这里记录下如何使用$.ajax实现该需 ...
- 【Android开发】如何设计开发一款Android App
本文从开发工具选择,UI界面.图片模块.网络模块.数据库产品选择.性能.安全性等几个方面讲述了如果开发一个Android应用.现在整理出来分享给广大的Android程序员. 开发工具的选择 开发工具我 ...
- 第四章 Spring.Net 如何管理您的类___对象、对象工厂和应用程序上下文
在前面一章我们介绍了依赖注入,控制反转的概念,以及自己动手搭建了一下Spring.Net的环境.通过这些操作,我们知道了Spring.Net 的核心是使用依赖注入或控制反转这种思想来管理业务对象,降低 ...
- Cocos2d-x3.0终于版Mac以及Win系统相关环境部署
因个人原因此博客停止更新,其它更新博文将在该博客继续更新. http://blog.csdn.net/xiaohan_aimti/article/details/24653831 就在前几天,2014 ...
- WAS的部署
一.设置JAM参数 1.登录WAS的控制台 https://192.168.0.91:9043/ibm/console
- Hessain 方法重载
在相应的配置文件里面加上这句话. <property name="overloadEnable" value="true"></proper ...