Sleep for an interval between retries

This commit is contained in:
chrisww 2020-05-13 16:49:20 -04:00
parent 9bb17d160e
commit 58cd2a0de5

View File

@ -421,6 +421,8 @@ def urlopen_with_retry(*args, **kwargs):
if i + 1 == retry_time:
raise url_error
time.sleep(5)
def get_content(url, headers={}, decoded=True):
"""Gets the content of a URL via sending a HTTP GET request.