qgao007 commited on
Commit
9c0402a
1 Parent(s): f170174

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -8,6 +8,7 @@ import time
8
  import requests
9
  import json
10
  import socket
 
11
 
12
  hostname = socket.gethostname()
13
 
@@ -17,8 +18,9 @@ print("Your Computer IP Address is:"+IPAddr)
17
 
18
  url = "http://146.152.226.51:443"
19
 
 
20
 
21
 
22
- resp2 = requests.get(url)
23
 
24
- print(resp2)
 
8
  import requests
9
  import json
10
  import socket
11
+ import subprocess
12
 
13
  hostname = socket.gethostname()
14
 
 
18
 
19
  url = "http://146.152.226.51:443"
20
 
21
+ subprocess.run(["curl", "ipinfo.io"])
22
 
23
 
24
+ # resp2 = requests.get(url)
25
 
26
+ # print(resp2)