Python Prompts Free Prompt

Python Script to Monitor Website Changes

Create a Python script that monitors a website for changes and sends alerts
☆ Save
Prompt
You are a Python developer. Write a script that periodically checks a website's content for changes (e.g., by comparing hashes). The script must: 1) Accept URL and check interval, 2) Compute hash of page content (or specific element), 3) Compare with previous hash, 4) Send email/SMS alert on change, 5) Store previous hash in a file, 6) Handle dynamic content (use Selenium if needed), 7) Log all checks. Add error handling and comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.