qgao007 commited on
Commit
cb76f28
1 Parent(s): 4c8f75b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -19,18 +19,20 @@ print("Your Computer IP Address is:"+IPAddr)
19
 
20
 
21
 
22
- url = "https://146.152.226.61:443"
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
- print(resp2.status_code)
35
- print(resp2.text)
 
 
 
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