This tool gives you information of domain expiration and HTTP status of URLs. It take plain txt
file with URLs. Each URL on a new line.
Python 3 should be already installed.
- Get source code
$ git clone https://github.com/ligain/17_sites_monitoring.git
- Create virtual environment in the directory where you want to place project.
$ cd 17_sites_monitoring/
python3 -m venv .env
- Activate virtual environment
$ . .env/bin/activate
- Install all dependencies via pip
pip install -r requirements.txt # alternatively try pip3
$ cd 17_sites_monitoring/
$ python check_sites_health.py -p ../urls.txt
Checked URLs:
---------------------------------------------------------------------------------------------------------
Url | Is URL ok | Domain status
---------------------------------------------------------------------------------------------------------
http://www.i.ua/ | yes | error
https://habrahabr.ru/ | yes | OK
https://www.gismeteo.ua/ | yes | error
...
The code is written for educational purposes. Training course for web-developers - DEVMAN.org