Created
September 29, 2016 01:13
-
-
Save THEMVFFINMAN/4f0577fd39b48b405a811038c43781f5 to your computer and use it in GitHub Desktop.
Army it people are tards, this sends me an email once they fix their ssl stuff
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 requests | |
import time | |
def send_me_an_email(): | |
return requests.post( | |
"https://api.mailgun.net/v3/sendingdomain/messages", | |
auth=("api", "API"), | |
data={"from": "CIA <[email protected]>", | |
"to": ["myemail", "myemail"], | |
"subject": "Might be up", | |
"text": "Might be up"}) | |
while True: | |
try: | |
r = requests.get('https://www.lms.army.mil/Saba/ALMSCustomLogin.jsp') | |
if r.text: | |
send_me_an_email() | |
break | |
except Exception: | |
print "didn't work, sleeping 10" | |
time.sleep(10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment