xxxxxxxxxx
import schedule
import time
def main():
# Your code here
print("Running main function...")
# Schedule the main function to run at 8:00 AM and 8:00 PM every day
schedule.every().day.at("08:00").do(main)
schedule.every().day.at("20:00").do(main)
# Keep the program running so that the scheduled tasks can be executed
while True:
schedule.run_pending()
time.sleep(1)
xxxxxxxxxx
import schedule
import time
def main():
# Your code here
print("Running main function...")
# Schedule the main function to run at 8:00 AM and 8:00 PM every day
schedule.every().day.at("08:00").do(main)
schedule.every().day.at("20:00").do(main)
# Keep the program running so that the scheduled tasks can be executed
while True:
schedule.run_pending()
time.sleep(1)