###Prerequisites:
Run in console pip install -r requirements.txt
to install 3rd party modules.
Script will help you to check if site is alive (HTTP status code 200) and its prepaid domain name expiration date more than 1 month.
###How to use:
Script takes one required argument:
path
- path to text file with domain names;
Note! Domain names in domain list file should be separated with spaces or new lines.
Good structure:
devman.org github.com vk.com
Good structure:
devman.org
github.com
vk.com
Not valid structure:
devman.org; http://github.com | vk.com
###Example:
urls.txt data:
devman.org
github.com
vk.com
someothersite.com
facebook.con
####INPUT
python check_site_health.py urls.txt
####OUPUT
- If all domains in file are alive and won't expire soon then you should see:
Domain list is OK
- If some domains are don't fit the conditions above then their status will be saved in file called 'unsafe_domains.txt'.
unsafe_domains.txt data:
[{"expire": null, "alive": false, "name": "facebook.con"}]