Note that this app is in the middle stages of production
This application scrapes Reddit to extract sentiment for a desired stock and then factors this information into predictions about the stocks future direction.
- Set up scraping and accessing stock values
- Create relational database to store data
- Move from local device to AWS
- Model for deriving sentiment
- Model for predicting stock direction
- Build Web App 👈
- Set up monitoring
- Add historical sentiment visualizations to app
- Finish README
Stock Sentiment is an webapp that gives real-time predictions and visualizations which capture the prevailing sentiment towards a particular stock on Reddit. Stock Sentiment's interface allows you to choose a stock and set the application to either "Visualization" mode or "Prediction" mode. As shown below in an example of "Visualization" mode, Stock Sentiment provides a host of visuals such as plots showing the predicted sentiment of all comments and posts scraped from Reddit within the past 48 hours. In additon, Stock Sentiment provides examples of posts and comments classified as "positive" or "negative" with extreme confidence.
With Conda Environment
If you have not already, download Anaconda.
Clone Repository and Change Directory:
git clone https://github.com/ileefmans/stock-sentiment
cd stock-sentiment
Create/Activate Conda Environment and Run App:
conda create --name StockSentiment python=3.7
conda activate StockSentiment
pip install -r requirements.txt
streamlit run utils/app.py
Deactivate Conda Environment:
conda deactivate
With Docker
If you have not already, install Docker.
Build and Run Image:
docker build -t app:1.0 -f Dockerfile .
docker run -p 8501:8501 app:1.0
- Type "localhost:8501" into internet browser
Stop Container:
docker stop <container name>