Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,17 +33,17 @@ if get == "Input":
|
|
33 |
if sub:
|
34 |
data = get_location(ip)
|
35 |
if data:
|
36 |
-
st.write(f"""Information that we searched for this ip address: {data[
|
37 |
-
City: {data[
|
38 |
-
Region: {data[
|
39 |
-
Country: {data[
|
40 |
-
Postal code: {data[
|
41 |
-
Latitude: {data[
|
42 |
-
Longitude: {data[
|
43 |
-
Timezone: {data[
|
44 |
-
UTC Offset: {data[
|
45 |
-
Country Calling Code: {data[
|
46 |
-
Country Population: {data[
|
47 |
|
48 |
if get == "Get yours":
|
49 |
ip = get_ip()
|
@@ -51,14 +51,14 @@ if get == "Get yours":
|
|
51 |
if sub:
|
52 |
data = get_location(ip)
|
53 |
if data:
|
54 |
-
st.write(f"""Information that we searched for this ip address: {data[
|
55 |
-
City: {data[
|
56 |
-
Region: {data[
|
57 |
-
Country: {data[
|
58 |
-
Postal code: {data[
|
59 |
-
Latitude: {data[
|
60 |
-
Longitude: {data[
|
61 |
-
Timezone: {data[
|
62 |
-
UTC Offset: {data[
|
63 |
-
Country Calling Code: {data[
|
64 |
-
Country Population: {data[
|
|
|
33 |
if sub:
|
34 |
data = get_location(ip)
|
35 |
if data:
|
36 |
+
st.write(f"""Information that we searched for this ip address: {data[0]}
|
37 |
+
City: {data[1]}
|
38 |
+
Region: {data[2]}
|
39 |
+
Country: {data[3]}
|
40 |
+
Postal code: {data[4]}
|
41 |
+
Latitude: {data[5]}
|
42 |
+
Longitude: {data[6]}
|
43 |
+
Timezone: {data[7]}
|
44 |
+
UTC Offset: {data[8]}
|
45 |
+
Country Calling Code: {data[9]}
|
46 |
+
Country Population: {data[10]}""")
|
47 |
|
48 |
if get == "Get yours":
|
49 |
ip = get_ip()
|
|
|
51 |
if sub:
|
52 |
data = get_location(ip)
|
53 |
if data:
|
54 |
+
st.write(f"""Information that we searched for this ip address: {data[0]}
|
55 |
+
City: {data[1]}
|
56 |
+
Region: {data[2]}
|
57 |
+
Country: {data[3]}
|
58 |
+
Postal code: {data[4]}
|
59 |
+
Latitude: {data[5]}
|
60 |
+
Longitude: {data[6]}
|
61 |
+
Timezone: {data[7]}
|
62 |
+
UTC Offset: {data[8]}
|
63 |
+
Country Calling Code: {data[9]}
|
64 |
+
Country Population: {data[10]}""")
|