# -*- coding:utf -8 -*-
import urllib
import re
for x in range(1,10):
print '正在打印第%s页'%x
def getvedio():
html=urllib.urlopen("http://www.budejie.com/video/%s"%x).read()
reg=re.compile(r' data-mp4="(.*?)">')
vedio =re.findall(reg,html)
return vedio
for i in getvedio():
print '正在打印%s'%i.split('/')[-1]
urllib.urlretrieve(i,'mvideo/%s'%i.split('/')[-1])
print '打印已完成%s'%i.split('/')[-1]