Python beginner here. I want to be able to timeout my download of a video file if the process takes longer than 500 seconds.
import urllib
try:
urllib.urlretrieve ("http://www.videoURL.mp4", "filename.mp4")
except Exception as e:
print("error")
How do I amend my code to make that happen?