Exemplo n.º 1
0
 def download(self, google_id):
     confpath=self.id_to_local(google_id)
     print "download", google_id, confpath
     login=None
     if self.google_user:
         login=(self.google_user,self.google_password)
     download_spreadsheet(google_id, confpath,login)
     return confpath
Exemplo n.º 2
0
    def download(self, localpath,google_id):
        #confpath=self.id_to_local(google_id)
        confpath=self.data_dir+localpath

        #isfolder exist
        dir=os.path.dirname(confpath)
        if not os.path.exists(dir):
            print "create dir", dir
            os.makedirs(dir)

        print "download", confpath,google_id
        login=self._check_login()

        download_spreadsheet(google_id, confpath,login)
        return confpath