Python Script for Website Health Monitoring

🤖AI Prompt Script

Act as a DevOps Engineer. I need a simple Python script to monitor the health and response time of a list of URLs.

The URLs to Check: [INSERT LIST OF 3-5 URLs].

Write a Python script that uses the requests library.

Iterate through the list of URLs.

For each URL, check the HTTP status code and the response time (in milliseconds).

If the status code is NOT 200, report the specific error code.

Output the results to the console in a clean table format: URL | Status | Response Time.

Include a brief instruction on how to set up the script to run automatically every hour using a simple scheduling method.

Posted Apr 6, 2026, 1:30 PM UTC

11
Loading comments…