Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ def runchecks(message,history):
|
|
123 |
results.append([site,speed])
|
124 |
df_log = pd.DataFrame(results)
|
125 |
return str(df_log)
|
126 |
-
|
127 |
for site in BTsites:
|
128 |
print(f"Checking robots.txt for {site}...")
|
129 |
botsCheck = check_robots(site)
|
@@ -133,7 +133,7 @@ def runchecks(message,history):
|
|
133 |
results.append([site,botsCheck])
|
134 |
df_log = pd.DataFrame(results)
|
135 |
return str(df_log)
|
136 |
-
|
137 |
for site in BTsites:
|
138 |
print(f"Checking sitemaps for {site}...")
|
139 |
mapsCheck = check_sitemap(site)
|
|
|
123 |
results.append([site,speed])
|
124 |
df_log = pd.DataFrame(results)
|
125 |
return str(df_log)
|
126 |
+
elif message == 'check bots' or message == 'Check Bots':
|
127 |
for site in BTsites:
|
128 |
print(f"Checking robots.txt for {site}...")
|
129 |
botsCheck = check_robots(site)
|
|
|
133 |
results.append([site,botsCheck])
|
134 |
df_log = pd.DataFrame(results)
|
135 |
return str(df_log)
|
136 |
+
elif message == 'check sitemaps' or message == 'Check Sitemaps':
|
137 |
for site in BTsites:
|
138 |
print(f"Checking sitemaps for {site}...")
|
139 |
mapsCheck = check_sitemap(site)
|