Fix Selenium error in a simple script that checks if a website is up

Job ID: 34524967

Budget: $10 – $30 USD

I have a simple python script that sends a Telegram alert to me when one of my 2 domains is down and also when it's up again

So the script is constantly checking domain123.com and if it goes down it will keep checking if domain123.com or domain124.com is up... if domain123.com is back online then it will send an alert as domain is online again, but if changed to domain124.com it will send an alert saying domain changed

The script itself it's working but crashing randomly with this error message:
seleniumwire.thirdparty.mitmproxy.exceptions.TcpDisconnect: [WinError 10053] An established connection was aborted by the software in your host machine

I need someone to fix it
Related categories: Python Selenium Webdriver Selenium