Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllib.error.ContentTooShortError #19

Closed
Diglee147 opened this issue Jan 9, 2022 · 1 comment
Closed

urllib.error.ContentTooShortError #19

Diglee147 opened this issue Jan 9, 2022 · 1 comment

Comments

@Diglee147
Copy link

418] bytes -
Downloading: 2% [3457024 / 165184418] bytes -
Downloading: 2% [3465216 / 165184418] bytes -
Downloading: 2% [3473408 / 165184418] bytes - Traceback (most recent call last):
File "C:\Users\CTF 1\Desktop\Receita_Federal_do_Brasil_-_Dados_Publicos_CNPJ-master\code\ETL_coletar_dados_e_gravar_BD.py", line 72, in
wget.download(url, out=output_files, bar=bar_progress)
File "C:\Users\CTF 1\AppData\Local\Programs\Python\Python310\lib\site-packages\wget.py", line 526, in download
(tmpfile, headers) = ulib.urlretrieve(binurl, tmpfile, callback)
File "C:\Users\CTF 1\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 280, in urlretrieve
raise ContentTooShortError(
urllib.error.ContentTooShortError: <urlopen error retrieval incomplete: got only 3473237 out of 165184418 bytes>

Alguém sabe resolver? Vi um cara na internet falando que é só adicionar uma função de reiniciar / retomar download, vou dar uma pesquisada, mas se alguém puder ajudar agradeço !

@Diglee147
Copy link
Author

solução: fazer o download na mao.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant