import urllib2 import re req = urllib2.urlopen('https://www.imooc.com/course/list') listurl = re.findall(r'//img.+\.jpg', req.read()) fullurls = set() for url in listurl: fullurl = 'https:' + url fullurls.add(fullurl) print fullurls
产品经理不是经理
相关分类