import os,time import requests,json # def downloadFile(name, url): # headers = {'Proxy-Connection': 'keep-alive'} # r = requests.get(url, stream=True, headers=headers) # length = float(r.headers['content-length']) # f = open(name, 'wb') # count = 0 #…