pip install schedule
import schedule
import time
def job():
print("Job is running at", time.strftime("%H:%M:%S"))
# Schedule the job at 9:00 and 15:00 every day
schedule.every().day.at("09:00").do(job)
schedule.every().day.at("15:00").do(job)
# Keep the script running to allow scheduled jobs to execute
while True:
schedule.run_pending()
time.sleep(1)