From abdfb01f7fee4be888d8d66e5f9754e16ac1d24c Mon Sep 17 00:00:00 2001 From: jowj Date: Sun, 16 Sep 2018 19:03:23 -0500 Subject: [PATCH] Add beginning of code and vars files. --- arke.py | 13 +++++++++++++ arkevars.py | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 arke.py create mode 100644 arkevars.py diff --git a/arke.py b/arke.py new file mode 100644 index 0000000..ee671d9 --- /dev/null +++ b/arke.py @@ -0,0 +1,13 @@ +import requests, arkevars, json + +responseTable = {} +for target in arkevars.httpTargets: + try: + statuscode = requests.get(target).status_code + responseTable[target] = statuscode + # prints the int of the status code. Find more at httpstatusrappers.com :) + + except requests.ConnectionError: + print("failed to connect") + +jsonData = json.dumps(responseTable) diff --git a/arkevars.py b/arkevars.py new file mode 100644 index 0000000..3104cb4 --- /dev/null +++ b/arkevars.py @@ -0,0 +1,8 @@ +httpTargets = ( + "https://bouncer.awful.club:5000", + "https://my.awful.club" +) + +containerTargets = ( + "slack.awful.club" +) \ No newline at end of file