A simple Python script to check the status of a website by sending an HTTP request and examining the response code.
- Python 3.x
requests
library
Install the requests
library using the following command:
pip install requests
- Clone the repository:
git clone https://github.com/Valhalla999/website-status-checker.git
cd website-status-checker
- Run the script:
python website_status_checker.py
-
Enter the website URL when prompted.
-
View the status of the website.
Enter the website URL: https://www.example.com
The website https://www.example.com is up and running.
Do you want to check another website? (y/n): y
Enter the website URL: https://www.anotherexample.com
The website https://www.anotherexample.com is down. Status code: 404
Do you want to check another website? (y/n): n
Goodbye!
If you have suggestions or find issues, please feel free to open an issue or create a pull request.
This project is licensed under the MIT License. ``