def download(self, path):
     try:
         filename = Extractor.filename_from_path(path)
         os.system('wget -O %s %s ' % (path, "%s/%s" % (self.download_path, filename)))
         return "%s/%s" % (self.download_path, filename)
     except Exception, e:
         print "Could not download file %s: %s" % (path, e)
 def download(self, path):
     try:
         filename = Extractor.filename_from_path(path)
         source = open(path, 'wb')
         destination = open(self.download_path + filename)
         destination.write(source)
         return self.download_path + filename
     except Exception, e:
         print "Could not download file %s: %s" % (path, e)
 def download(self, path):
     try:
         filename = Extractor.filename_from_path(path)
         connection = self.connect()
         connection.voidcmd("NOOP")
         connection.retrbinary('RETR ' + path, open("%s/%s" % (self.download_path, filename), 'wb').write)
         connection.quit()
         return "%s/%s" % (self.download_path, filename)
     except Exception, e:
         print "Could not download file %s: %s" % (path, e)
 def download(self, path):
     try:
         filename = Extractor.filename_from_path(path)
         result = urllib2.urlopen(path)
         f = open("%s/%s" % (self.download_path, filename), "wb")
         f.write(result.read())
         f.close()
         return "%s/%s" % (self.download_path, filename)
     except Exception, e:
         print "Could not download file %s: %s" % (path, e)