Add1E commited on
Commit
78a8fc4
·
verified ·
1 Parent(s): 0aad076

Update trend_crawl2.py

Browse files
Files changed (1) hide show
  1. 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": [