Spaces:
Running
Running
Update trend_crawl.py
Browse files- trend_crawl.py +1 -2
trend_crawl.py
CHANGED
@@ -57,7 +57,7 @@ def process_selenium_row(index, selenium_rows, driver):
|
|
57 |
for article in articles
|
58 |
]
|
59 |
}
|
60 |
-
|
61 |
# Clear previously fetched articles and return current ones
|
62 |
return dynamic_data
|
63 |
|
@@ -92,7 +92,6 @@ def scrape_google_trends(driver, url):
|
|
92 |
[div.get_text(strip=True) for div in cell.find_all("div")]
|
93 |
for cell in row_bs.find_all("td")[1:4]
|
94 |
]
|
95 |
-
print(static_data)
|
96 |
dynamic_data = process_selenium_row(index, selenium_rows, driver)
|
97 |
combined_row = {
|
98 |
"static_data": static_data,
|
|
|
57 |
for article in articles
|
58 |
]
|
59 |
}
|
60 |
+
print(dynamic_data)
|
61 |
# Clear previously fetched articles and return current ones
|
62 |
return dynamic_data
|
63 |
|
|
|
92 |
[div.get_text(strip=True) for div in cell.find_all("div")]
|
93 |
for cell in row_bs.find_all("td")[1:4]
|
94 |
]
|
|
|
95 |
dynamic_data = process_selenium_row(index, selenium_rows, driver)
|
96 |
combined_row = {
|
97 |
"static_data": static_data,
|