PingPong is a Python script that pings a specified website to test its response time, and sends an email notification if the website is down or if the response time is too slow.
- Python 3.x
- speedtest-cli module
- smtplib module
- Clone this repository
- Install the required modules using pip:
pip install speedtest-cliandpip install secure-smtplib - Install
B YekanFont in your OS. - Configure the script by modifying the constants at the beginning of main.py
- Run the script using
python main.py
- The script will automatically run every
ping_intervalseconds (default is 300 seconds, or 5 minutes). - If the website response time is greater than
max_response_timeseconds (default is 10 seconds), or if the website is down (i.e. response time is None), the script will send an email notification to the specified email address.

