def try_requests(url):
i = 0
while i < 5:
try:
response = requests.get(url, headers=headers, timeout=60)
return response
except:
print('重试一下下。。。')
i += 1
return None
def try_requests(url):
i = 0
while i < 5:
try:
response = requests.get(url, headers=headers, timeout=60)
return response
except:
print('重试一下下。。。')
i += 1
return None