removed unused

This commit is contained in:
Linus E 2022-04-12 10:12:35 +02:00
parent 27858a3b59
commit 2e48d2a27e

View File

@ -6,7 +6,6 @@ __date__ = "15.03.2022"
__version__ = "0.0.1"
__license__ = "None"
from ast import parse
import sys
import os
import json
@ -26,7 +25,7 @@ sources = source_json["sources"]
str_sources = ",".join([source["id"] for source in sources])
def get_all_news_by_keyword(keyword, from_date="2000-01-01"): # hard coded will change soon
def get_all_news_by_keyword(keyword, from_date="2000-01-01"):
"""get all news to keyword
Args:
keyword (String): keyword for search
@ -81,3 +80,4 @@ if __name__ == '__main__':
articles = get_all_news_by_keyword("bitcoin")
formatted_article = format_article(articles["articles"][0])
print(formatted_article)
sys.exit(1)