Created
September 25, 2019 19:02
-
-
Save jimmyjxiao/718dbe4e210cc2dc4de3c126371bb813 to your computer and use it in GitHub Desktop.
CS201 Woto Checker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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