This project is based on a web scraper that scraps the data regarding the covid-19 cases worldwide and sends it to your mobile via SMS every 30 minutes.(The time delay between each SMS can be changed)
Installation of the required libraries
pip install -r requirements.txt
-
You will be provided with a dashboard.
-
Go to Settings and you will see your 'ACCOUNT SID' and 'AUTH TOKEN' under 'LIVE CREDENTIALS'.
-
Go to 'Products and Services' on the left dashboard.
-
Then go to 'Phone numbers' under Super Network in order to get the numbers verified that you need to send the SMS update.
-
You need to manually verify the numbers you need by clicking the '+'.
Add your Account SID and Auth Token
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
Then add the trial number created for your Account and your verified number
from_='+15017122661' #YOUR TRIAL PHONE NUMBER
to=' ' #THE VERIFIED NUMBER THAT YOU NEED TO SEND THE SMS
This is only a trial account so you can send SMS to only a single number at a time.
Run the project using
python covid19_casecount.py
If you feel like you need to reduce or increase the time delay,this is the format.
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
schedule.every().monday.do(job)
schedule.every().wednesday.at("13:15").do(job)
schedule.every().minute.at(":17").do(job)