import time
import schedule
def job():
print("I'm working...")
schedule.every(5).seconds.do(job)
#schedule.every().hour.do(job)
#schedule.every().day.at("10:30").do(job)
while True:
schedule.run_pending()
time.sleep(1)
I'm working... I'm working... I'm working...
--------------------------------------------------------------------------- KeyboardInterrupt Traceback (most recent call last) <ipython-input-7-70bc025c4a03> in <module>() 8 while True: 9 schedule.run_pending() ---> 10 time.sleep(1) KeyboardInterrupt: