Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,11 @@ websites = [
|
|
| 22 |
"https://www.garrya.com",
|
| 23 |
"https://www.hommhotels.com",
|
| 24 |
"https://www.foliohotels.com",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
"https://www.raffles.com",
|
| 26 |
"https://www.aman.com",
|
| 27 |
"https://www.rosewoodhotels.com",
|
|
@@ -64,7 +69,7 @@ def check_site_speed(url):
|
|
| 64 |
response = requests.get(url, headers=headers, timeout=10)
|
| 65 |
response.raise_for_status()
|
| 66 |
end_time = time.time()
|
| 67 |
-
return round(end_time - start_time,
|
| 68 |
except requests.exceptions.RequestException as e:
|
| 69 |
print(f"Error checking {url}: {e}")
|
| 70 |
return None
|
|
|
|
| 22 |
"https://www.garrya.com",
|
| 23 |
"https://www.hommhotels.com",
|
| 24 |
"https://www.foliohotels.com",
|
| 25 |
+
"https://www.groupbanyan.com",
|
| 26 |
+
"https://veya.banyantree.com",
|
| 27 |
+
"https://escape.banyantree.com",
|
| 28 |
+
"https://essentials.banyantree.com",
|
| 29 |
+
"https://gifting.groupbanyan.com",
|
| 30 |
"https://www.raffles.com",
|
| 31 |
"https://www.aman.com",
|
| 32 |
"https://www.rosewoodhotels.com",
|
|
|
|
| 69 |
response = requests.get(url, headers=headers, timeout=10)
|
| 70 |
response.raise_for_status()
|
| 71 |
end_time = time.time()
|
| 72 |
+
return round(end_time - start_time, 3) # Response time in seconds
|
| 73 |
except requests.exceptions.RequestException as e:
|
| 74 |
print(f"Error checking {url}: {e}")
|
| 75 |
return None
|