I'm currently trying to download a video using Python Requests, and I want to find out the size of it first.
import requests
print("STARTING PROGRAM...")
req = requests.get("https://www.source.com/source.mp4")
The only way I thought of is the following:
for chunk in req.iter_content():
count+=1
print("FOUND %d CHUNKS" %(count))
But that took quite a long time since I am downloading a 24-min mp4. Is there a better way to do this?