raghavNCI commited on
Commit
493ea8d
·
1 Parent(s): 2756b6b

minor fix for headlines

Browse files
Files changed (1) hide show
  1. nuse_modules/fetchHeadlines.py +2 -2
nuse_modules/fetchHeadlines.py CHANGED
@@ -1,6 +1,6 @@
1
  # nuse_modules/fetch_headline_articles.py
2
 
3
- from nuse_modules.google_search import search_google_news
4
 
5
  def fetch_headline_articles():
6
  queries = [
@@ -14,7 +14,7 @@ def fetch_headline_articles():
14
  ]
15
 
16
  print("[INFO] Fetching news articles from Google Custom Search...")
17
- articles = search_google_news(queries, results_per_query=30) # 30 per query × 25 queries = ~750 raw
18
 
19
  print(f"[INFO] Retrieved {len(articles)} unique articles.")
20
  return articles
 
1
  # nuse_modules/fetch_headline_articles.py
2
 
3
+ from nuse_modules.google_search import search_google_news_batch
4
 
5
  def fetch_headline_articles():
6
  queries = [
 
14
  ]
15
 
16
  print("[INFO] Fetching news articles from Google Custom Search...")
17
+ articles = search_google_news_batch(queries, results_per_query=30) # 30 per query × 25 queries = ~750 raw
18
 
19
  print(f"[INFO] Retrieved {len(articles)} unique articles.")
20
  return articles