name = path + name + '.jpg'
else:
name = ""
RuntimeError("parsing url is empty!")
return name
def download(self):
if len(url):
retval = urllib.urlretrieve(self.url, self.file)
print "DownLoad %s is OK" % self.file
else:
RuntimeError("DownLoad is error!")
class spider(object):
def __init__(self, url):
self.url = url;