Spaces:
Running
Running
Update trend_crawl2.py
Browse files- trend_crawl2.py +0 -1
trend_crawl2.py
CHANGED
@@ -36,7 +36,6 @@ def click_and_scrape(driver, url):
|
|
36 |
# Wait for the ul element with the specific aria-label to load
|
37 |
ul_element = WebDriverWait(driver, 20).until(
|
38 |
EC.presence_of_element_located((By.XPATH, "//ul[contains(@aria-label, 'Kategorie') or contains(@aria-label, 'Category')]"))
|
39 |
-
)
|
40 |
)
|
41 |
li_elements = ul_element.find_elements(By.TAG_NAME, "li")
|
42 |
except Exception as e:
|
|
|
36 |
# Wait for the ul element with the specific aria-label to load
|
37 |
ul_element = WebDriverWait(driver, 20).until(
|
38 |
EC.presence_of_element_located((By.XPATH, "//ul[contains(@aria-label, 'Kategorie') or contains(@aria-label, 'Category')]"))
|
|
|
39 |
)
|
40 |
li_elements = ul_element.find_elements(By.TAG_NAME, "li")
|
41 |
except Exception as e:
|