Beispiel #1
0
def oneOfSeries(urllist,path):
    searchname = '.*/(.*?).html'
    current_path = ''
    for url in urllist:
        name = re.findall(searchname,url,re.S)
        current_path = path + '/' + name[0]
        meizi_page_download.picurl(url,current_path)
def oneOfSeries(urllist, path):
	searchname = ".*/(.*?).html"
	current_path = ""
	for url in urllist:
		try:
			name = re.findall(searchname, url, re.S)
			current_path = path + '/' + name[0]
			meizi_page_download.picurl(url, current_path)
		except urllib2.URLError:
			pass
def oneOfSeries(urllist, path):
    searchname = ".*/(.*?).html"
    current_path = ""
    for url in urllist:
        try:
            name = re.findall(searchname, url, re.S)
            current_path = path + '/' + name[0]
            meizi_page_download.picurl(url, current_path)
        except urllib2.URLError:
            pass
def oneOfSeries(urllist,path):
    searchname = '.*/(.*?).html'
    current_path = '' 
    for url in urllist:
        try:
            name = re.findall(searchname,url,re.S)
            current_path = path + '/' + name[0]
            meizi_page_download.picurl(url,current_path)
            errorReport.success(url)
        except IndexError:
            errorReport.errorIndex(url, searchname)