A simple command line tool thats pings a URL in a fixed interval
This is the result of a fun nightly live coding session at our LsW Telegram channel. We hope that you have just as much fun and that you find it useful as we do.
- Python 3.5+
- curl (version >= 7.29.0)
- argcomplete (optional) -
pip install argcomplete
- Download the latest release
- Make the binary executable:
chmod +x http-ping
- Have fun :)
To make the usage more comfortable, you can create an alias in your .bashrc
:
alias http-ping="/yourLocalPath/http-ping"
Or even install it systemwide in one of the bin folders (e.g. /usr/local/bin/http-ping
)
Just type http-ping https://www.example.com
Press ctrl+c
to stop the process.
At the end you'll see some statistics as it also provides the ping program.
Parameter | Meaning | Default |
---|---|---|
--all-ips, -a | request the given URL from all IP addresses behind the domain | |
--ipv4, -4 | use IPv4 addresses only | |
--ipv6, -6 | use IPv6 addresses only | |
--iterations, -i | check the URL the given times | no limit |
--sleep, -s | sleep the given time | 1 second |
--timeout, -t | timeout for a single request | none |
--verbose, -v | be more verbose | |
--version | show the currently used version | |
--help, -h | show the help message |
Many thanks to fragbenny for the logo :)
Copyright © 2017 Michael Wieland and Michael Rong GNU General Public License v3.0