Giter VIP home page Giter VIP logo

stock-prediction-using-sentiment-analysis's Introduction

Real Time Stock Market Prediction Using Tweet Sentiment Analysis

Set Up

Run the commands:

git clone https://github.com/OmarAtyqy/stock-prediction-using-sentiment-analysis
cd stock-prediction-using-sentiment-analysis

Create an .env containg the credentials to a MongoDB cluster that has the following:

  • Database named main
  • Collection within this database named tweets
DB_USERNAME = _______________ # cluster username
DB_PASSWORD = _______________ # cluster password

Windows

Run the ./build.bat script

Unix-based systems

Run the ./build.sh script

Running the Services

To start the various services of the project, you can either manually run each service or use the provided scripts for convenience.

Manual Startup

  1. Dashboard Service:

    docker-compose exec -it dash-app bash
    cd /mnt && python3 -m src.dashboard.main_dashboard
  2. Prediction Service:

    docker-compose exec -it spark-master bash
    cd /mnt && python3 -m src.spark.main_pipeline
  3. Data Fetching Service:

    docker-compose exec -it kafka bash
    cd /mnt && python3 -m src.kafka.main <stock_name> <interval>

    Replace <stock_name> with the desired stock symbol and <interval> with the data fetching interval.

Automated Startup

Alternatively, you can use the provided scripts to start all services simultaneously:

For Windows Users:

Run the run.bat script:

./run.bat <stock_name> <interval>

For Unix-based System Users:

Run the run.sh script:

./run.sh <stock_name> <interval>

In both scripts, replace <stock_name> with the stock symbol and <interval> with the data fetching interval.

stock-prediction-using-sentiment-analysis's People

Contributors

bratet avatar hamba-m avatar

Stargazers

 avatar Omar EL ATYQY avatar

Watchers

Omar EL ATYQY avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.