sends you an sms when the stock price of the company that you want goes above or below a certain percentage(which you can set).
- Go to Alphavantage.co and get your free api key and paste that key on
line 10
inmain.py
- Go to newsapi.org and get your api key and paste it on
line 12
inmain.py
- Go to twilio.com and sign up to get your ACCOUNT_SID, AUTH_TOKEN, TRIAL_NUMBER.
- Paste these 3 things on lines
15
,16
, and17
respectively inmain.py
. - Enter your current phone number which you used while signing up for twilio on
line 20
- If you want to change the name of the stock you can change it on
line 5
but be sure to also change the company name online 7
to get appropriate news.
if you want to receive sms alerts on a different phone number you'll need to verify it with twilio first you can do that by going to your twilio dashboard and clicking on verified numbers and adding your phone number(otp will be sent for verification)
if you want to change the percentage of increase/decrease of the stock (default is 1) you can do that by changing the number on line 52 in the if statement
You can automate this script using pythonanywhere