Block reuters
This commit is contained in:
parent
21949bdd2c
commit
0c86bd74ef
|
@ -125,6 +125,7 @@ def get_newsfeed(category='general'):
|
|||
article_data['author'] = article['author']
|
||||
article_data['category'] = category
|
||||
article_data['timestamp'] = datetime.now()
|
||||
if (article['url'].contains("reuters.com") == False):
|
||||
articles.append(article_data)
|
||||
|
||||
print("Newsfeed data retrieved!")
|
||||
|
|
3
snc.py
3
snc.py
|
@ -149,8 +149,11 @@ def get_newsfeed(category='general'):
|
|||
article_data['author'] = article['author']
|
||||
article_data['category'] = category
|
||||
article_data['timestamp'] = datetime.now()
|
||||
if (article['url'].contains("reuters.com") == False):
|
||||
articles.append(article_data)
|
||||
|
||||
|
||||
|
||||
print("Newsfeed data retrieved!")
|
||||
return articles
|
||||
|
||||
|
|
Loading…
Reference in New Issue