Skip to content

sharoika/MarketPredictor

Repository files navigation

MarketPredictor

A TensorFlow machine learning algorithm using YFinance (Yahoo finance) data alongside scraped Twitter data that has been run through a sentient analyzer (textblob) to attempt to predict stock movements.

AI-Generated Logo

[]

Installation and Setup Instructions

  1. Ensure that you have Python 3 installed on your system.
  2. Clone the project repository from GitHub.
  3. Navigate to the project directory.
  4. Run "pip install -r requirements.txt" in the root directory to install all the dependencies.
  5. Create a .env file with the following format (all Twitter information):
    • TW_EMAIL=
    • TW_USERNAME=
    • TW_PASSWORD=
  6. Once the dependencies are installed successfully and the .env file is created, you are ready to use the project by running "Python3 MarketPredictor.py" in the root directory and following the prompts. [HINT: Use AAPL as the first ticker for testing]

File Overview

  • /MarketPredictionModel
    • The TensorFlow model, was created and uploaded so people don't need to train their own with my data.
  • /analyzed
    • The tweets with sentiment values already attached to them.
  • /finances
    • The financial data that YFinanace provides us.
  • /scraped
    • The raw tweets scraped straight from Twitter.
  • /scripts
    • FinanaceScraper.py
      • This is the script that requests data from YFinance.
    • SentimentAnalyzer.py
      • This is the script that analyzes the sentiment of the Twitter data.
    • TweetScraper.py
      • This is the script that scrapes tweets off of Twitter.
  • /training
    • MarketTrainer.py
      • This is the script that created, and saves the model; it grabs the existing data in the training folder and also request from YFinanace.
  • MarketPredictor.py
    • This is the main drivers of the predictor, this should be the file you call.

Training Data

About

Using a Twitter, textBlob, YFinance, PlayWright, and TensorFlow attempting to predict stock movements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors