Created
September 20, 2017 12:47
-
-
Save milanmaximo/758516ee3c7d402d5e45ffd97e8f4a54 to your computer and use it in GitHub Desktop.
Schedule reminder python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import schedule | |
| import time | |
| def job(): | |
| print("I'm working...") | |
| schedule.every(10).minutes.do(job) | |
| schedule.every().hour.do(job) | |
| schedule.every().day.at("11:00").do(job) | |
| schedule.every().monday.do(job) | |
| schedule.every().wednesday.at("13:15").do(job) | |
| while True: | |
| schedule.run_pending() | |
| time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment