Spaces:
Sleeping
Sleeping
Update scrape_3gpp.py
Browse files- scrape_3gpp.py +2 -2
scrape_3gpp.py
CHANGED
@@ -242,7 +242,7 @@ def update_excel(data, excel_file, url):
|
|
242 |
|
243 |
def extractionPrincipale(url, excel_file=None, status_list=None, progress=gr.Progress()):
|
244 |
folder_name = 'nom provisoire'
|
245 |
-
temp_excel =
|
246 |
progress(0.0,desc='Telechargement')
|
247 |
result, message = scrape(url, excel_file, folder_name, status_list)
|
248 |
if result:
|
@@ -455,6 +455,6 @@ def extractionPrincipale(url, excel_file=None, status_list=None, progress=gr.Pro
|
|
455 |
update_excel(data, temp_excel, url)
|
456 |
print(f"Final update after processing all files.")
|
457 |
|
458 |
-
file_name =
|
459 |
# Save the updated DataFrame to Excel
|
460 |
return file_name, "Téléchargement réussi"
|
|
|
242 |
|
243 |
def extractionPrincipale(url, excel_file=None, status_list=None, progress=gr.Progress()):
|
244 |
folder_name = 'nom provisoire'
|
245 |
+
temp_excel = url.split("/")[-2] + "_status.xlsx"
|
246 |
progress(0.0,desc='Telechargement')
|
247 |
result, message = scrape(url, excel_file, folder_name, status_list)
|
248 |
if result:
|
|
|
455 |
update_excel(data, temp_excel, url)
|
456 |
print(f"Final update after processing all files.")
|
457 |
|
458 |
+
file_name = temp_excel
|
459 |
# Save the updated DataFrame to Excel
|
460 |
return file_name, "Téléchargement réussi"
|