Code Monkey home page Code Monkey logo

covid19-updates-via-sms's Introduction

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)

covid19-updates-via-sms's People

Contributors

vishnurameshbabu avatar

Stargazers

 avatar  avatar Vaidhyanathan S M avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.