Skip to content

asapsav/web-qa-crons

Repository files navigation

webpage-qa

Deploy cron jobs to ask yes/no questions to webpages. U get an email if yes.

Setup

# Install
uv add modal
modal token new

Configure cron jobs in webpage-question-checker.py:

@app.function(schedule=modal.Cron("0 9 * * *"), timeout=300)
def check_if_christmas():
    webpage_url = "https://isitchristmas.com"
    question = "Is it Christmas?"
    check_webpage_logic(webpage_url, question)

Create secrets:

modal secret create openai-secret OPENAI_API_KEY=sk-proj-...
modal secret create email-sender-receiver-password \
  SENDER_EMAIL=you@gmail.com \
  RECEIVER_EMAIL=you@gmail.com \
  EMAIL_PASSWORD=your-app-password

Deploy:

modal deploy webpage-question-checker.py

Test immediately: modal run webpage-question-checker.py

Cost

~$0.03/month (OpenAI gpt-5-mini + Modal free tier)

About

Different cron jobs deployed on modal.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages