updated reqs and news sources
This commit is contained in:
parent
ae2ed56eb7
commit
3b675cf7fc
@ -26,7 +26,7 @@ def get_top_news_by_keyword(keyword):
|
|||||||
Returns:
|
Returns:
|
||||||
JSON/dict: dict containing articles
|
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
|
return top_headlines
|
||||||
|
|
||||||
def format_article(article):
|
def format_article(article):
|
||||||
|
@ -3,3 +3,4 @@ Markdown~=3.3.6
|
|||||||
yfinance~=0.1.70
|
yfinance~=0.1.70
|
||||||
newsapi-python~=0.2.6
|
newsapi-python~=0.2.6
|
||||||
python-dotenv~=0.19.2
|
python-dotenv~=0.19.2
|
||||||
|
requests~=2.27.1
|
||||||
|
Loading…
Reference in New Issue
Block a user