From 3b675cf7fc414ec7d538120af015ae7b6b7c3872 Mon Sep 17 00:00:00 2001 From: Rripped Date: Wed, 16 Mar 2022 12:58:58 +0100 Subject: [PATCH] updated reqs and news sources --- telegram_bot/news/news_fetcher.py | 2 +- telegram_bot/requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/telegram_bot/news/news_fetcher.py b/telegram_bot/news/news_fetcher.py index 784961d..5f00fbc 100644 --- a/telegram_bot/news/news_fetcher.py +++ b/telegram_bot/news/news_fetcher.py @@ -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): diff --git a/telegram_bot/requirements.txt b/telegram_bot/requirements.txt index 417310c..4dcfe5c 100644 --- a/telegram_bot/requirements.txt +++ b/telegram_bot/requirements.txt @@ -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