Skip to content

Instantly share code, notes, and snippets.

@sandipndev
Created December 18, 2019 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandipndev/a9e21e144573d3924255727b7c89acf2 to your computer and use it in GitHub Desktop.
Save sandipndev/a9e21e144573d3924255727b7c89acf2 to your computer and use it in GitHub Desktop.
[WIN-10 only!] Makaut Website Changed Notifier
from time import sleep
from urllib.request import urlopen
from win10toast import ToastNotifier
url = "http://www.makautexam.net"
toaster = ToastNotifier()
with urlopen(url) as handle:
prev_html = handle.read().decode()
while True:
with urlopen(url) as handle:
html = handle.read().decode()
if html != prev_html:
toaster.show_toast("Makaut Website Changed", "Check " + url)
break
sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment