This code is part of the stock price prediction challenge from "Learn Python for Data Science #2" by Siraj Raval. The code works as follows:
- The User is asked to choose a stock ticker and a look_back period.
- Tweets about the stock and their sentiment are anlysed with Tweepy and TextBlob
- If the overall sentiment is positive, stock data is downloaded from Yahoo-Finance
- A NN is trained to predict t+1s stock price based on the look_back perdiod.
- The data and the predicted data is plotted.
Credits go to both Siraj Raval and Jason Brownlee for this blog post from which I adapted code.