Skip to content

Instantly share code, notes, and snippets.

@TinkuSandeep
TinkuSandeep / website-monitoring-1
Created April 2, 2024 15:55 — forked from adeekshith/website-monitoring-1
Scripts for website monitoring using Python
#!/usr/bin/env python
# sample usage: checksites.py eriwen.com nixtutor.com yoursite.org
import pickle, os, sys, logging
from httplib import HTTPConnection, socket
from smtplib import SMTP
def email_alert(message, status):
fromaddr = 'you@gmail.com'