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
添加回答
举报
0/150
提交
取消