Spaces:
Sleeping
Sleeping
Update scrape_3gpp.py
Browse files- scrape_3gpp.py +2 -2
scrape_3gpp.py
CHANGED
|
@@ -458,13 +458,13 @@ def extractionPrincipale(url, excel_file=None, status_list=None, progress=gr.Pro
|
|
| 458 |
source = "" # Update this with actual source determination logic
|
| 459 |
RelatedWIs = ""
|
| 460 |
status = ""
|
| 461 |
-
data.append([url+ "/" + folder + '.zip', folder , category, title, source,
|
| 462 |
|
| 463 |
guide_file = 'guide.xlsx'
|
| 464 |
if os.path.exists(guide_file):
|
| 465 |
# If guide.xlsx exists, proceed with operations that require it
|
| 466 |
try:
|
| 467 |
-
guide_df = pd.read_excel(guide_file, usecols=['Source', 'TDoc', '
|
| 468 |
# Continue with the operations that require guide.xlsx
|
| 469 |
# For example, reading the file, processing the data, etc.
|
| 470 |
tdoc_source_map = {row['TDoc']: row['Source'] for index, row in guide_df.iterrows()}
|
|
|
|
| 458 |
source = "" # Update this with actual source determination logic
|
| 459 |
RelatedWIs = ""
|
| 460 |
status = ""
|
| 461 |
+
data.append([url+ "/" + folder + '.zip', folder , category, title, source, RelatedWIs, status, contenu])
|
| 462 |
|
| 463 |
guide_file = 'guide.xlsx'
|
| 464 |
if os.path.exists(guide_file):
|
| 465 |
# If guide.xlsx exists, proceed with operations that require it
|
| 466 |
try:
|
| 467 |
+
guide_df = pd.read_excel(guide_file, usecols=['Source', 'TDoc', 'Related WIs', 'TDoc Status'])
|
| 468 |
# Continue with the operations that require guide.xlsx
|
| 469 |
# For example, reading the file, processing the data, etc.
|
| 470 |
tdoc_source_map = {row['TDoc']: row['Source'] for index, row in guide_df.iterrows()}
|