I have a python script that search for something in the internet.the script takes 2 minutes to finish. after 2 minutes script will exit and the job is done.
but i want to run this script on my computer constantly for a day without stopping. it means i want to rerun the script after it's finished for a day.
i tried something like this so far:
status = True
def setstatus(stat):
global status
if staus:
status = not stat
timer = Timer(1440,setstatus,[True])
timer.start()
while status:
# do the job
any suggestion?