Spaces:
Running
Running
Update trend_crawl2.py
Browse files- trend_crawl2.py +1 -0
trend_crawl2.py
CHANGED
@@ -88,6 +88,7 @@ def process_selenium_row(index, rows, driver):
|
|
88 |
|
89 |
# Fetch only the newly loaded articles
|
90 |
articles = driver.find_elements(By.CLASS_NAME, "xZCHj")
|
|
|
91 |
# Extract data from the current row only
|
92 |
dynamic_data = {
|
93 |
"article": [
|
|
|
88 |
|
89 |
# Fetch only the newly loaded articles
|
90 |
articles = driver.find_elements(By.CLASS_NAME, "xZCHj")
|
91 |
+
articles = articles[:3]
|
92 |
# Extract data from the current row only
|
93 |
dynamic_data = {
|
94 |
"article": [
|