mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-07 18:01:10 +00:00
small fixes to the article print output
This commit is contained in:
@@ -192,7 +192,8 @@ def get_article_data(article_id: int) -> dict:
|
||||
|
||||
article = {
|
||||
'title': jdata['data']['attributes']['title'],
|
||||
'date': jdata['data']['attributes']['lastModified'],
|
||||
'publishedAt': jdata['data']['attributes']['lastModified'],
|
||||
'url': "https://seekingalpha.com"+jdata['data']['links']['self'],
|
||||
'content': content
|
||||
}
|
||||
|
||||
|
||||
@@ -189,5 +189,7 @@ def news_article_view(other_args: List[str]):
|
||||
return
|
||||
|
||||
article = seeking_alpha_model.get_article_data(ns_parser.n_id)
|
||||
print(article['date'], article['title'])
|
||||
print(article['publishedAt'], " ", article['title'])
|
||||
print(article["url"])
|
||||
print("")
|
||||
print(article['content'])
|
||||
|
||||
Reference in New Issue
Block a user