Skip to content

Commit d83f287

Browse files
authored
Update newsapi.py
1 parent ae1123d commit d83f287

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

speech_recognition_news/newsapi.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ def get_top_news(news_information, todays_date):
3737
article.download()
3838
article.parse()
3939
article.nlp()
40-
summary = article.summary
41-
news_information[i["source"]["name"]] = {
42-
"""title": i["title"],
43-
"summary":summary, "url":i["url"],
44-
"date":f"{todays_date}"""
45-
}
40+
summary = article.summary # noqa
41+
news_information[i["source"]["name"]] = {"title": i["title"], "summary":summary, "url":i["url"], "date":f"{todays_date}"}
4642

4743

4844
def json_file(news_information, todays_date):

0 commit comments

Comments
 (0)