jadvani / VirusScraper

Scrap the latest count from Covid19 affected people using Python 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Jupyter Notebook 100.0%