I’m having trouble downloading this zip file from the URL: https://www.dgii.gov.do/app/WebApps/Consultas/RNC/DGII_RNC.zip with python code.
I tried many things but every time I try to download the zip the file seems to be corrupted and doesn’t have the whole content.
The only way I can download it is by manually entering the URL in a web browser.
One of the errors I ran into consistently:
requests.exceptions.ChunkedEncodingError: (‘Connection broken:
IncompleteRead(8388608 bytes read, 12299532 more expected)’,
IncompleteRead(8388608 bytes read, 12299532 more expected))
Thank you in advance.