Skip to content

VishnuRameshbabu/Covid19-updates-via-SMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Covid19-updates-via-SMS


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

Installation of the required libraries

pip install -r requirements.txt

Setting up your Twilio Account

  • SignUp your first twilio account

  • You will be provided with a dashboard.

  • Go to Settings and you will see your 'ACCOUNT SID' and 'AUTH TOKEN' under 'LIVE CREDENTIALS'.
    Verified Number

  • 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 '+'.

Verified Number

Setting up the Program

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.

Usage

Run the project using

python covid19_casecount.py

SMS

Editing the time delay between each SMS

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages