爬虫的时候下载图片出问题了,下载了后不能打开
# -*- coding: utf-8 -*-
import re
import requests
import urllib
html=requests.get('http://www.360doc.com/content/13/0509/15/7436612_284146326.shtml')
html.encoding="utf-8"
title=re.findall('src="'"(.*?)"'" __1368084481640__="ev_',html.text)
i=0
for each in title:
print each
urllib.urlretrieve(each,'%s.jpg'%i)
i+=1