Skip to content

Scrap the latest count from Covid19 affected people using Python 3

Notifications You must be signed in to change notification settings

jadvani/VirusScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VirusScraper

Covid

Scrap current Covid-19 world situation from Worldometers or the Spanish Government Covid-19 official website, and send all the information obtained by email.

How to run the code

  1. Clone this repository.

  2. Open VirusScrapper.ipynb using Jupyter Notebook or Google Colab.

  3. Setup your Gmail parameters. Change *** with your personal account information (sender email + correspondent password, receiver email).

    password = '***'
    msg['From'] = '***'	
    msg['To'] = '***'
    
  4. Execute

Remember to enable Third-Party Mail Clients in Gmail settings

Inside "MyAccount" > "Sign-in & security" > "Connected apps & sites" > "Allow less secure apps"

More info here: https://www.arclab.com/en/kb/email/how-to-enable-imap-pop3-smtp-gmail-account.html

Note: if you copy and paste all the code in a .py extension file, you can manage your cronjobs to run the script periodically. I currently do this using a Google Cloud VM Instance.

About

Scrap the latest count from Covid19 affected people using Python 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published