How to download files continuously using Python wget or urllib3.
My wish is to download automatic files at intervals, such as at intervals of 1 hour. on the official urllib3 page, there is Retrying Requests content for its users
Advertisement
Answer
Well, let me give you an answer and you can clarify the question:
JavaScript
x
6
1
from time import sleep
2
3
while True:
4
download()
5
sleep(36000)
6
where download() is a function that calls wget or urllib3.