Add1E commited on
Commit
57f5fd7
·
verified ·
1 Parent(s): 27848dd

Update trend_crawl.py

Browse files
Files changed (1) hide show
  1. trend_crawl.py +2 -2
trend_crawl.py CHANGED
@@ -46,7 +46,7 @@ def process_selenium_row(index, selenium_rows, driver):
46
 
47
  # Fetch only the newly loaded articles
48
  articles = driver.find_elements(By.CLASS_NAME, "xZCHj")
49
-
50
  # Extract data from the current row only
51
  dynamic_data = {
52
  "article": [
@@ -57,7 +57,7 @@ def process_selenium_row(index, selenium_rows, driver):
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
 
 
46
 
47
  # Fetch only the newly loaded articles
48
  articles = driver.find_elements(By.CLASS_NAME, "xZCHj")
49
+ print(articles)
50
  # Extract data from the current row only
51
  dynamic_data = {
52
  "article": [
 
57
  for article in articles
58
  ]
59
  }
60
+
61
  # Clear previously fetched articles and return current ones
62
  return dynamic_data
63