diff --git a/Docker/snc.py b/Docker/snc.py index ca30cc3..e70b15a 100644 --- a/Docker/snc.py +++ b/Docker/snc.py @@ -125,7 +125,8 @@ def get_newsfeed(category='general'): article_data['author'] = article['author'] article_data['category'] = category article_data['timestamp'] = datetime.now() - articles.append(article_data) + if (article['url'].contains("reuters.com") == False): + articles.append(article_data) print("Newsfeed data retrieved!") return articles diff --git a/snc.py b/snc.py index 66948a6..87311ea 100644 --- a/snc.py +++ b/snc.py @@ -149,7 +149,10 @@ def get_newsfeed(category='general'): article_data['author'] = article['author'] article_data['category'] = category article_data['timestamp'] = datetime.now() - articles.append(article_data) + if (article['url'].contains("reuters.com") == False): + articles.append(article_data) + + print("Newsfeed data retrieved!") return articles