Skip to content

Instantly share code, notes, and snippets.

@jimmyjxiao
Created August 30, 2019 20:48
Show Gist options
  • Save jimmyjxiao/17228fe67663968e753497ab4ffc598a to your computer and use it in GitHub Desktop.
Save jimmyjxiao/17228fe67663968e753497ab4ffc598a to your computer and use it in GitHub Desktop.
import urllib.request;
import sys;
import ctypes # An included library with Python install.
import time;
url = sys.argv[1]
while(1):
with urllib.request.urlopen(url) as response:
html = response.read()
if(b"<input" in html):
ctypes.windll.user32.MessageBoxW(0, "WOTO is open!", "WOTO check message", 0x1000)
break;
else:
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment