Skip to content

Instantly share code, notes, and snippets.

@jimmyjxiao
Created September 25, 2019 19:02
Show Gist options
  • Save jimmyjxiao/718dbe4e210cc2dc4de3c126371bb813 to your computer and use it in GitHub Desktop.
Save jimmyjxiao/718dbe4e210cc2dc4de3c126371bb813 to your computer and use it in GitHub Desktop.
CS201 Woto Checker
import urllib.request;
import sys;
import ctypes
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