Update app.py
Browse files
app.py
CHANGED
@@ -19,18 +19,20 @@ print("Your Computer IP Address is:"+IPAddr)
|
|
19 |
|
20 |
|
21 |
|
22 |
-
url = "https://146.152.226.61
|
23 |
|
24 |
# subprocess.run(["curl", "ipinfo.io"])
|
25 |
|
|
|
|
|
|
|
|
|
26 |
while True:
|
27 |
-
|
28 |
-
resp1 = requests.get("http://3.231.107.102")
|
29 |
-
print(resp1.status_code)
|
30 |
-
print(resp1.text)
|
31 |
-
|
32 |
resp2 = requests.get(url)
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
36 |
# one more
|
|
|
19 |
|
20 |
|
21 |
|
22 |
+
url = "https://146.152.226.61"
|
23 |
|
24 |
# subprocess.run(["curl", "ipinfo.io"])
|
25 |
|
26 |
+
resp1 = requests.get("http://3.231.107.102")
|
27 |
+
print(resp1.status_code)
|
28 |
+
print(resp1.text)
|
29 |
+
|
30 |
while True:
|
|
|
|
|
|
|
|
|
|
|
31 |
resp2 = requests.get(url)
|
32 |
+
if resp2.status_code == 200:
|
33 |
+
print('Oh yeah, you are smart!')
|
34 |
+
else:
|
35 |
+
print('Oh no, you are dumb!')
|
36 |
+
print(resp2.status_code)
|
37 |
+
print(resp2.text)
|
38 |
# one more
|