All Projects → Aryagm → Stocksent

Aryagm / Stocksent

Licence: MPL-2.0 License
A Python library for sentiment analysis of various tickers from the latest news by trusted sources, and tools to plot results. 📈📊📰

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Stocksent

Stock Market Prediction Web App Using Machine Learning And Sentiment Analysis
Stock Market Prediction Web App based on Machine Learning and Sentiment Analysis of Tweets (API keys included in code). The front end of the Web App is based on Flask and Wordpress. The App forecasts stock prices of the next seven days for any given stock under NASDAQ or NSE as input by the user. Predictions are made using three algorithms: ARIMA, LSTM, Linear Regression. The Web App combines the predicted prices of the next seven days with the sentiment analysis of tweets to give recommendation whether the price is going to rise or fall
Stars: ✭ 101 (+188.57%)
Mutual labels:  sentiment-analysis, stock-market
stocktwits-sentiment
Stocktwits market sentiment analysis in Python with Keras and TensorFlow.
Stars: ✭ 23 (-34.29%)
Mutual labels:  sentiment-analysis, stock-market
pystocklib
Python library to Fetch & Analyze Stock Market data.
Stars: ✭ 23 (-34.29%)
Mutual labels:  sentiment-analysis, stock-market
Stocksight
Stock market analyzer and predictor using Elasticsearch, Twitter, News headlines and Python natural language processing and sentiment analysis
Stars: ✭ 1,037 (+2862.86%)
Mutual labels:  sentiment-analysis, stock-market
Bulbea
🐗 🐻 Deep Learning based Python Library for Stock Market Prediction and Modelling
Stars: ✭ 1,585 (+4428.57%)
Mutual labels:  sentiment-analysis, stock-market
Stock market sentiment analysis
股市情感分析
Stars: ✭ 130 (+271.43%)
Mutual labels:  sentiment-analysis, stock-market
Steward
A stock portfolio manager that provides neural net based short-term predictions for stocks and natural language processing based analysis on community sentiments.
Stars: ✭ 25 (-28.57%)
Mutual labels:  sentiment-analysis, stock-market
PBAN-PyTorch
A Position-aware Bidirectional Attention Network for Aspect-level Sentiment Analysis, PyTorch implementation.
Stars: ✭ 33 (-5.71%)
Mutual labels:  sentiment-analysis
wink-sentiment
Accurate and fast sentiment scoring of phrases with #hashtags, emoticons :) & emojis 🎉
Stars: ✭ 51 (+45.71%)
Mutual labels:  sentiment-analysis
SentimentAnalysis
Sentiment Analysis: Deep Bi-LSTM+attention model
Stars: ✭ 32 (-8.57%)
Mutual labels:  sentiment-analysis
nordnet
Uonfficial wrapper for financial data api from the Scandinavian broker Nordnet
Stars: ✭ 13 (-62.86%)
Mutual labels:  stock-market
LinLP
使用Python进行自然语言处理相关实践,如新词发现,主题模型,隐马尔模型词性标注,Word2Vec,情感分析
Stars: ✭ 43 (+22.86%)
Mutual labels:  sentiment-analysis
lorca
Natural Language Processing for Spanish in Node.js. Stemmer, sentiment analysis, readability, tf-idf with batteries, concordance and more!
Stars: ✭ 95 (+171.43%)
Mutual labels:  sentiment-analysis
restaurant-finder-featureReviews
Build a Flask web application to help users retrieve key restaurant information and feature-based reviews (generated by applying market-basket model – Apriori algorithm and NLP on user reviews).
Stars: ✭ 21 (-40%)
Mutual labels:  sentiment-analysis
bert sa
bert sentiment analysis tensorflow serving with RESTful API
Stars: ✭ 35 (+0%)
Mutual labels:  sentiment-analysis
MemNet ABSA
No description or website provided.
Stars: ✭ 20 (-42.86%)
Mutual labels:  sentiment-analysis
stockscore
A python project to fetch stock financials/statistics and perform preliminary screens to aid in the stock selection process
Stars: ✭ 54 (+54.29%)
Mutual labels:  stock-market
textlytics
Text processing library for sentiment analysis and related tasks
Stars: ✭ 25 (-28.57%)
Mutual labels:  sentiment-analysis
Unofficial-Robinhood-Api
Java Wrapper for the Robinhood Investing App/Service
Stars: ✭ 28 (-20%)
Mutual labels:  stock-market
NSP-BERT
The code for our paper "NSP-BERT: A Prompt-based Zero-Shot Learner Through an Original Pre-training Task —— Next Sentence Prediction"
Stars: ✭ 166 (+374.29%)
Mutual labels:  sentiment-analysis

Stocksent

logo

Stocksent is a Python library for sentiment analysis of various tickers from the latest news from trusted sources. It also has options for plotting results.

Installation

Use the package manager pip to install stocksent.

pip install stocksent


Usage


Get Sentiment of single stock

from stocksent import Sentiment
stock = Sentiment('AAPL')
sentiment_score = stock.get_sentiment()
print(sentiment_score)  # Returns a float with the sentiment score.
0.189

Get Sentiment of multiple stocks

from stocksent import Sentiment
stocks = Sentiment(['AAPL','TSLA','GOOG'])
sentiment_score = stocks.get_sentiment(days=4) # Get the sentiment for the past 4 days.
print(sentiment_score)  # Returns a float with the sentiment score.
0.237

Get DataFrame of headlines, source and sentiment scores

from stocksent import Sentiment
stocks = Sentiment(['AAPL','TSLA','AMZN'])
sentiment_score = stocks.get_dataframe(days=6) # Get the headlines for the past 6 days.
print(sentiment_score)  # Returns a DataFrame with headlines, source and sentiment scores.
      ticker          date	   time	                    source	                                      headline       Negative   Neutral  Positive   Overall    
  0	AAPL	2021-07-05	09:55AM	 Investor's Business Daily   Dow Jones Futures: Apple, Google, Tech Titans ...	        0.000	  1.000	    0.000    0.0000
  1	AAPL	2021-07-05	09:04AM	           The Independent   7 best VPN services for streaming and security...	        0.000	  0.645	    0.355    0.7650
  2	AAPL	2021-07-05	09:00AM	               Motley Fool   Warren Buffett Owns These Dividend-Paying Grow...	        0.000	  0.776	    0.224    0.3818
  3	AAPL	2021-07-05	06:51AM	               Motley Fool   Here's Why Bill Ackman's SPAC Deal Could Be a ...	        0.000	  0.581	    0.419    0.7579
  4	AAPL	2021-07-05	06:09AM                Barrons.com   Jeff Bezos Steps Down as CEO on Monday. Heres ...	        0.073	  0.927	    0.000   -0.0258
...	 ...	       ...	    ...	                       ...	                                           ...	          ...	    ...	      ...	...
295	AMZN	2021-06-30	12:16PM	                   Reuters   UPDATE 1-Amazon asks FTC to recuse Chairwoman ...	        0.000	  1.000	    0.000    0.0000
296	AMZN	2021-06-30	12:01PM	                   Reuters   Amazon says FTC should take new chair off its ...	        0.000	  0.841	    0.159    0.1779
297	AMZN	2021-06-30	10:13AM	               Motley Fool   3 Stocks I Would Avoid at All Costs	                0.306	  0.694	    0.000   -0.2960
298	AMZN	2021-06-30	08:43AM	             TheStreet.com   Amazon Asks FTC to Bar Chair Khan From Matters...	        0.000	  0.781     0.219    0.2023
299	AMZN	2021-06-30	08:13AM	                     Zacks   Digital Transformation Giving Cloud Business a...	        0.000	  0.495     0.505    0.6249

Get plot of sentiment scores

from stocksent import Sentiment
stocks = Sentiment(['AAPL','TSLA','GOOG'])
stocks.plot(save_figure=True)

plot



Get word cloud of headlines

from stocksent import Sentiment
stocks = Sentiment(['AAPL','AMZN','GOOG','TSLA'])
stocks.word_cloud(days=5) #Create a word cloud from news from the past 5 days.

word cloud



Docs

Read the docs here: https://stocksent.readthedocs.io !

Contributing

Pull requests are welcome on GitHub !


License

Mozilla Public License Version 2.0


Author

Arya Manjaramkar

   


Disclaimer

The material in this repository is purely for educational purposes and should not be taken as professional investment advice. Invest at your own discretion.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].