Skip to content

Automatic get risk region through official website

Notifications You must be signed in to change notification settings

SilenWang/Risk_Region

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Risk Region

Program based on RiskLevel, use mongoDB to store risk region information from offical website, and send notice email to specific addresss.

passwd.py is the config file contain mail sending account and receiving address:

# sending config
account = '[email protected]'
passwd = 'PASSWORD'

# receiver info
receiver = '[email protected]'

Email are sending using zmail moudule, so stmp server are parsed automaticly, only mail account and password are needed.

REQUIREMENT

  • mongoDB
  • python3
    • pymongo
    • schedule
    • zmail
    • pandas
    • requests

Please notice that zmail is only available through pip

HOW TO USE

  1. Clone this project
  2. Install the requirements
  3. Create passwd.py, and config the sending account and reciving account
  4. Start mongoDB
  5. Start risk_region.py

TODO

  • A CUI to config mail infomation and start the service
  • Automatic database init process, this should to be done using insert.py manually now
  • Simple plotly app to display the risk region trend or something
  • A more decent config.py

About

Automatic get risk region through official website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published