Open utterances-bot opened 2 years ago
Many bug found:
1) Using python3 you need to change this import urllib.request with urllib.request.urlopen(url) as response: html = response.read()
to this a = = response.read()
2) Status not "200" for example 404 result in trowing an exception that bypass the "else" statement, so script never execute.
python-How to check website or url health periodically and automatically by using python script?
https://www.bswen.com/2021/06/python-how-to-check-url-health-periodically-by-python-script.html