Bot features #7
@ -26,7 +26,7 @@ def get_top_news_by_keyword(keyword):
|
||||
Returns:
|
||||
JSON/dict: dict containing articles
|
||||
"""
|
||||
top_headlines = newsapi.get_top_headlines(q=keyword, sources='bbc-news,the-verge,cnn', language='en')
|
||||
top_headlines = newsapi.get_top_headlines(q=keyword, sources='bbc-news,the-verge,cnn,buzzfeed,fox', language='en')
|
||||
return top_headlines
|
||||
|
||||
def format_article(article):
|
||||
|
@ -3,3 +3,4 @@ Markdown~=3.3.6
|
||||
yfinance~=0.1.70
|
||||
newsapi-python~=0.2.6
|
||||
python-dotenv~=0.19.2
|
||||
requests~=2.27.1
|
||||
|
Loading…
Reference in New Issue
Block a user