from apscheduler.schedulers.blocking import BlockingScheduler
import time
def write_1000_words():
# Write 1000 words
print("Writing 1000 words...")
# Create a new scheduler
scheduler = BlockingScheduler()
# Schedule the job to run every day at a specific time
scheduler.add_job(write_1000_words
'interval'
days=1
start_date='2022-01-01 00:00:00')
# Start the scheduler
scheduler.start()
while True:
time.sleep(1)