python简单抓取页面数据实例

#coding=utf-8 html import urllib url import re htm def getHtml(url): utf-8 page = urllib.urlopen(url) get html = page.read() import return html coding def getImg(html): im reg = r'src="(.+?\.jpg)" pic
相关文章
相关标签/搜索