tejas1304 / 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 given for three algorithms: ARIMA, LSTM, Linear Regression. The Web App combines the predicted prices for the next seven days with the sentiment analysis of tweets to give recommendation whether the price is going to rise or fall

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stock-Market-Prediction-Web-App-using-Machine-Learning

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. The data for NASDAQ stocks is fetched from Yahoo Finance API and that for NSE stocks is fetched from the Alphavantage API. 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

Screenshots

Find how the project looks in screenshots folder Or click here

File and Directory Structure

screenshots - Screenshots of Web App
static - static files of flask app: css, images, js, etc.
templates - html files
Tweets.py - structure of Tweets for sentiment Analysis
constants.py - config file for app with Twitter API keys and other details
main.py - main machine learning module

Technologies Used

  • Wordpress
  • Flask
  • Tensorflow
  • Keras
  • Yahoo Finance
  • Alphavantage
  • Scikit-Learn
  • Tweepy
  • Python
  • PHP
  • CSS
  • HTML
  • Javascript

How to Install and Use

  1. Download and install Wordpress from https://wordpress.org/download/
  2. Once wordpress is installed, install All In One WP Migration Plugin on Wordpress
  3. Once installed, go to the plugin and import the file "localhost-wordpress-20200313-074610-uxz1wx (1).wpress" provided in my repo
  4. Go to command prompt, change directory to directory of repository and type pip install -r requirements.txt
  5. To run app, type in command prompt, python main.py
  6. Open your web browser and go to http://localhost/wordpress to access the web app

About

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 given for three algorithms: ARIMA, LSTM, Linear Regression. The Web App combines the predicted prices for the next seven days with the sentiment analysis of tweets to give recommendation whether the price is going to rise or fall


Languages

Language:Python 100.0%