Bot into main #71

Merged
NormalParameter merged 55 commits from bot into main 2022-04-25 15:02:35 +00:00
Showing only changes of commit 2e48d2a27e - Show all commits

View File

@ -6,7 +6,6 @@ __date__ = "15.03.2022"
__version__ = "0.0.1" __version__ = "0.0.1"
__license__ = "None" __license__ = "None"
from ast import parse
import sys import sys
import os import os
import json import json
@ -26,7 +25,7 @@ sources = source_json["sources"]
str_sources = ",".join([source["id"] for source in 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 """get all news to keyword
Args: Args:
keyword (String): keyword for search keyword (String): keyword for search
@ -80,4 +79,5 @@ if __name__ == '__main__':
articles = get_all_news_by_keyword("bitcoin") articles = get_all_news_by_keyword("bitcoin")
formatted_article = format_article(articles["articles"][0]) formatted_article = format_article(articles["articles"][0])
print(formatted_article) print(formatted_article)
sys.exit(1)