Update app.py
Browse files
app.py
CHANGED
@@ -338,15 +338,17 @@ def sitemap_test(url,file_state,level):
|
|
338 |
print (e)
|
339 |
except Exception as e:
|
340 |
print (e)
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
|
|
|
|
350 |
uri_key=sort_doc(url_front,file_state,8)
|
351 |
|
352 |
######## Save Database ########
|
|
|
338 |
print (e)
|
339 |
except Exception as e:
|
340 |
print (e)
|
341 |
+
try:
|
342 |
+
for ea_link in link2['LINKS']:
|
343 |
+
print(ea_link)
|
344 |
+
try:
|
345 |
+
url_list=ea_link.split("/")
|
346 |
+
url_front.append(url_list[:3])
|
347 |
+
#url_front.append(f'{url_list[0]}//{url_list[2]}')
|
348 |
+
except Exception as e:
|
349 |
+
print(e)
|
350 |
+
except Exception as e:
|
351 |
+
print(e)
|
352 |
uri_key=sort_doc(url_front,file_state,8)
|
353 |
|
354 |
######## Save Database ########
|