2016年6月23日

简单爬虫-初次尝试

摘要: import urllib import re def getHtml(url): page = urllib.urlopen(url) html = page.read() return html def getImg(html): reg = r'src="(.+?\.jpg)" pic_ext' imgre = re.compile(reg) ... 阅读全文

posted @ 2016-06-23 11:18 Kermit.Li 阅读(112) 评论(0) 推荐(0)

导航