Skip to content

crispyabsurdist/URL-Ping-CLI-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Ping CLI Tool

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.

Features:

  • 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.

Prerequisites

  • Python 3.x
  • Install required packages via pip:
    pip3 install requests rich

Usage:

./ping_url.py <URL>
Skärmavbild 2024-09-11 kl  12 49 47

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages