diff --git a/source/sat/sat_web.py b/source/sat/sat_web.py index 50e2208..2df7737 100644 --- a/source/sat/sat_web.py +++ b/source/sat/sat_web.py @@ -407,7 +407,7 @@ class SATWebService(): self._error = f'Status: {response.status_code} - {response.text}' return - result = ET.fromstring(response.text) + result = ET.fromstring(response.text, parser=ET.XMLParser(huge_tree=True)) namespaces = self.NS_RESULT2.copy() namespaces['h'] = 'http://DescargaMasivaTerceros.sat.gob.mx' diff --git a/source/sat/util.py b/source/sat/util.py index 1dd2511..187c2a9 100644 --- a/source/sat/util.py +++ b/source/sat/util.py @@ -334,7 +334,9 @@ def _download(sat, data, key): msg = f"Descarga aceptada con el ID: {data['id']}\nEsperando un minuto para verificar la descarga..." log.info(msg) - sleep(60) + for i in range(60, 0, -1): + print(f'\r{i}', end=' ') + sleep(1) while True: result = sat.verify(data)