I am downloading video using python requests module. I want to know how much content is received currently while downloading like we see in browsers etc. x bytes downloaded of y bytes.
I have attached the code below what I'm using. How can I achieve what I said above?
print(f'[+] Downloading "{file}" ({sizeInMb} MB)...')
with requests.get(url, stream=True) as r:
with open(filePath, 'wb+') as f:
shutil.copyfileobj(r.raw, f)
print(f'[-] Downloaded "{file}".')
downloadCount += 1