def download(self): c = Client() c.login() d = c.load(self.folder) c.logout() for k in self.KEYS: v = d[k] setattr(self, k, v) assert self.downloaded() self.save()
def _load(folders): c = Client() c.login() dictionaries = [c.load(folder) for folder in folders] c.logout() return dictionaries