Predicting stock prices from Yahoo stock screener using scikit-learn and sending the predicitons via smtplib to a phone number. Time series analysis (Linear Regression) is used, sciki-learn, to predict the future prices from the stock tickers.
Imports needed:
- numpy
- datetime
- smtplib
- time
- selenium
- sklearn
- iexfinance
You will also need to download the chromedriver so selenium can work properly. It can be downloaded here and then place the path to the driver in the code:
driver = webdriver.Chrome('PATH TO CHROME DRIVER')
In order to send the SMS message of the prediction you will need to enter your email username and password along with the number you wish to send the predictions to. Here are some popular domain's for phone carriers:
- AT&T: [email protected] (SMS), [email protected] (MMS)
- T-Mobile: [email protected] (SMS & MMS)
- Verizon: [email protected] (SMS), [email protected] (MMS)
- Sprint: [email protected] (SMS), [email protected] (MMS)
- Virgin Mobile: [email protected] (SMS), [email protected] (MMS)
A full list of domains for phone carriers can be found here