This is a simple Python-based command-line tool that continuously pings a specified URL and returns its HTTP status code every 5 minutes. The tool provides a visually appealing output using the rich
library for colored and styled terminal text.
- Pings a given URL and returns the HTTP status code.
- Automatically retries every 5 minutes, with a friendly wait message.
- Color-coded output based on the HTTP status code:
- Green for 2xx (success).
- Yellow for 4xx (client errors).
- Red for 5xx (server errors).
- Easy to run on Mac (iTerm2, zsh) or any terminal that supports Python 3.
- Python 3.x
- Install required packages via pip:
pip3 install requests rich
./ping_url.py <URL>