A lightweight Python-based tool that checks website availability, displays HTTP status codes, and measures website response time through an interactive command-line interface.
- Check whether a website is online or offline.
- Automatically adds
https://if no protocol is provided. - Display HTTP status codes.
- Measure website response time in milliseconds.
- Handle connection errors and request timeouts.
- Colored terminal output.
- Check multiple websites without restarting the program.
- Python
- Requests
- Colorama
- Time Module
python-website-response-checker/
│
├── app.py
├── requirements.txt
├── README.md
└── .gitignore
- Clone this repository:
git clone https://github.com/pradipta-web/python-website-response-checker.git- Navigate to the project directory:
cd python-website-response-checker- Create a virtual environment:
py -m venv venv- Install the required packages:
.\venv\Scripts\python.exe -m pip install -r requirements.txtRun the application:
.\venv\Scripts\python.exe app.pyEnter a website URL when prompted.
Type exit to close the application.
==================================================
WEBSITE RESPONSE CHECKER
==================================================
Enter website URL (or type 'exit'): google.com
Checking website...
==================================================
CHECK RESULTS
==================================================
Website : https://google.com
Status : Online
HTTP Code : 200
Response Time : 150.25 ms
==================================================
Note: Response time and output values are examples and may vary.
Kinervaaa
GitHub: https://github.com/pradipta-web