Skip to content

Commit

Permalink
feat: update ticker news info dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianning Li committed Oct 3, 2024
1 parent 1afe901 commit 23067b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions finvizfinance/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def ticker_news(self):
news_date = cols[0].text
title = cols[1].a.text
link = cols[1].a["href"]
source = cols[1].span.text
source = cols[1].span.text[1:-1]
news_time = news_date.split()
if len(news_time) == 2:
last_date = news_time[0]
Expand All @@ -297,7 +297,7 @@ def ticker_news(self):

news_time = format_datetime(news_time)

info_dict = {"Date": news_time, "Title": title, "Link": link, "Source": source[1:-1]}
info_dict = {"Date": news_time, "Title": title, "Link": link, "Source": source}
frame.append(info_dict)
except AttributeError:
pass
Expand Down

0 comments on commit 23067b8

Please sign in to comment.