Skip to content

Commit c0f9a29

Browse files
fix: tweepy partial match
1 parent 304c5c4 commit c0f9a29

6 files changed

Lines changed: 1 addition & 1 deletion

File tree

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def LIN_REG_ALGO(df):
331331
def retrieving_tweets_polarity(symbol):
332332
stock_ticker_map = pd.read_csv('Yahoo-Finance-Ticker-Symbols.csv')
333333
stock_full_form = stock_ticker_map[stock_ticker_map['Ticker']==symbol]
334-
symbol = stock_full_form['Name'].to_list()[0][0:14]
334+
symbol = stock_full_form['Name'].to_list()[0][0:12]
335335

336336
auth = tweepy.OAuthHandler(ct.consumer_key, ct.consumer_secret)
337337
auth.set_access_token(ct.access_token, ct.access_token_secret)

static/ARIMA.png

-10.6 KB
Loading

static/LR.png

-7.44 KB
Loading

static/LSTM.png

-6.63 KB
Loading

static/SA.png

-1.42 KB
Loading

static/Trends.png

-2.76 KB
Loading

0 commit comments

Comments
 (0)