Created
August 30, 2019 20:48
-
-
Save jimmyjxiao/17228fe67663968e753497ab4ffc598a to your computer and use it in GitHub Desktop.
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 # 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