标签:
#coding=gbk ‘‘‘ Created on 2014-9-25 @author: Administrator ‘‘‘ import urllib import urllib2 import re #url = ‘http://www.taobao.com/‘ url = ‘http://www.cdjwc.com/jiaowu/Login.aspx‘ req = urllib2.Request(url) html = urllib2.urlopen(req).read() #print html #ss = re.findall(‘blank">(.*?)\<\/‘,html) ss = re.findall(‘<span id="lbzx">(.*?)\</span>‘,html) for i in ss: print i
标签:
原文地址:http://www.cnblogs.com/lovecc/p/4182585.html