Closed mesh-newbie closed 3 years ago
Hi @jinxo13. Suggestion for file progress download. from clint.textui import progress total_length = int(r.headers.get('content-length')) for chunk in progress.bar(r.iter_content(chunk_size=8192), expected_size=(total_length/8192) + 1):
from clint.textui import progress total_length = int(r.headers.get('content-length')) for chunk in progress.bar(r.iter_content(chunk_size=8192), expected_size=(total_length/8192) + 1):
Hi @mesh-newbie, great idea I've incorporated your code.
Hi @jinxo13. Suggestion for file progress download.
from clint.textui import progress total_length = int(r.headers.get('content-length')) for chunk in progress.bar(r.iter_content(chunk_size=8192), expected_size=(total_length/8192) + 1):