|
|
|
|
|
from nuse_modules.google_search import search_google_news_batch |
|
|
|
def fetch_headline_articles(): |
|
queries = [ |
|
"India news", "US politics", "UK elections", "China economy", |
|
"Tech layoffs", "Ukraine war", "AI regulation", "Africa development", |
|
"South America inflation", "Global stock markets", "Climate change", |
|
"Middle East", "EU summit", "Canada economy", "Australia news", |
|
"Russia sanctions", "Elections 2025", "Big tech", "Trade wars", |
|
"Global protests", "Public health", "Oil prices", "Space news", |
|
"Cryptocurrency", "Cybersecurity" |
|
] |
|
|
|
print("[INFO] Fetching news articles from Google Custom Search...") |
|
articles = search_google_news_batch(queries, results_per_query=30) |
|
|
|
print(f"[INFO] Retrieved {len(articles)} unique articles.") |
|
return articles |
|
|